Skip to main content

UNKNOWN

Project description

PySmartCache is a way to get automatic caching and caching invalidation for functions/methods.

Idea is quite simple: you just need to decorate your function/method with @cache(), and pysmartcache will take care of the rest (caching based on arguments, cache invalidation, helpers for cache purge, cache refresh and cache invalidation, and so on).

For instance, change this:

def calculate_universe_mass(some_parameter, another_parameter, whatever):
    return 42

to this:

from pysmartcache import cache


@cache()
def calculate_universe_mass(some_parameter, another_parameter, whatever):
    return 42

Seriosuly. That’s it. =P

For more dense details please refer to the docs.

Contribute

Did you think in some interesting feature, or have you found a bug? Please let me know!

Of course you can also download the project and send me some pull requests. (see contributing session for more)

You can send your suggestions by opening issues.

You can contact me directly as well. Take a look at my contact information at http://filwaitman.github.io/ (email is preferred rather than mobile phone).

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

pysmartcache-1.2.4.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file pysmartcache-1.2.4.tar.gz.

File metadata

  • Download URL: pysmartcache-1.2.4.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysmartcache-1.2.4.tar.gz
Algorithm Hash digest
SHA256 44f8eaf06c17f94273da251cbbd27a4d072730e70447d21cab866291f101066b
MD5 e62d8c8934e2e2fe0eced6977eca6931
BLAKE2b-256 b102c598a5738e15b66cfdde412adc11694f6012ca8745d5fec314d3e83fa63d

See more details on using hashes here.

Supported by

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