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 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