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!
##### 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 | RSS feed
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)