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


Release history Release notifications

Download files

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

Files for rcmemoize, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size rcmemoize-0.0.3.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page