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 details)
File details
Details for the file rcmemoize-0.0.3.tar.gz
.
File metadata
- Download URL: rcmemoize-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10594e356e04ea52153b284c5061abc0e087401a6a57943629734e7f165d633 |
|
MD5 | d34536c48af26c89b1a550e9c7bc46fd |
|
BLAKE2b-256 | 05fc657147cfa4387b7e53893bc91451fd6f2ca882dcae33b09ff4a8974b4cfa |