Skip to main content

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.

Source Distribution

sqltocache-3.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file sqltocache-3.0.tar.gz.

File metadata

  • Download URL: sqltocache-3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sqltocache-3.0.tar.gz
Algorithm Hash digest
SHA256 f9a7c85277141d35ffed9daff6b6e3dd53d4b5e30e5e413a6dcbde562c1288b1
MD5 06b11f40f5dd2b16624b5c527b8cab0e
BLAKE2b-256 5e3cef52382e37b5b7afabcfcf41d5ee85afac6d70c6e1e2f7310b0a48692f83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page