Skip to main content

Cache anything in the current request cycle in memory for preventing duplicate method callers.

Project description

# rcmemoize (Django)
##### Cache anything in the current request cycle in memory for preventing duplicate method callers.
##### It works for Django only for now. But can be contributed to extend other Python Web Frameworks like Flask, Bottle, TurboGears etc.

# Installation

```bash
pip install rcmemoize
```

# Configuration

##### Add bottom of the of the MIDDLEWARE_CLASSES

```bash
rcmemoize.middleware.memoization_middleware.RequestCycleMemoizationMiddleware
```

# Usage
```bash
from rcmemoize.memoization import request_cycle_memoize

@request_cycle_memoize()
def your_method(*args,**kwargs):
...
```

# CONTRIBUTE
##### All contributions are very welcomed!

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

rcmemoize-0.0.3.tar.gz (3.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page