Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

sql cache decorator

Project description

##support Mongodb,Mysql,Hbase,ES .... ,And there Sql'result to redis cache .

## 安装方法

pip install sqltocache

## 使用方法

```
from sqltocache import cache_it_msgpack

@cache_it_msgpack(cache=self.c)
def add_it(a, b=10, c=5):
return a + b + c
add_it(3)
```
ToFix:

1. 现在用的还是json和pickle组合模式,msgpack还存在少许bug


ToDo:

1. 尽量多的兼容二次的序列化

2. 缓存的web api

Project details


Download files

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

Files for sqltocache, version 3.0
Filename, size File type Python version Upload date Hashes
Filename, size sqltocache-3.0.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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page