Skip to main content

Cache the current index of you array

Project description

array-cache

Usage

from array_cache import ArrayCache

# save to cache every x item
CACHE_DELAY=10

cached_array = array_cache.ArrayCache(data_array, "my-identifier", CACHE_DELAY)
for one_word in cached_array.get_data():
    # use here

License

Licensed under the MIT License - LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

array-cache-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

array_cache-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file array-cache-1.0.1.tar.gz.

File metadata

  • Download URL: array-cache-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for array-cache-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6721fae75dfb3b7571f243b37fa599f4596d3feaa0edf8500f5b2c5e27a1a95b
MD5 8c1b10eda78890b30d6555f6d598d81b
BLAKE2b-256 e7261189150bb3c3ad56393c1eeb6008d14a46ac8e7763895163d8dcfdc8f9d6

See more details on using hashes here.

File details

Details for the file array_cache-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: array_cache-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for array_cache-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24e62730788af17dee3be0228ad29f6983f2d8923dac8f521d0c0750fe9c3228
MD5 21281f5fbbc53ffc55dec48ed1cbfdc5
BLAKE2b-256 c74a51a1eecf01f45708ea7d373d248ee097081531a357915f5080bf66cc8b30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page