A cache-based python ORM.
Project description
A cache-based python ORM -- supports Redis, Memcached.
CacheBackend
- BaseBackend
- SimpleBackend
- RedisBackend
- MemcachedBackend
Methods
set(key, value)
get(key)
delete(key)
set_many(mapping)
get_many(*keys)
delete_many(*keys)
has(key)
Serializer
- json
- msgpack
- pickle
- protobuf
Registry
All serializers are registered to a registry singleton.
Provide json
, msgpack
, pickle
three preset serializers.
You can register your own serializer,
such as a Protobuf serializer that registers a Person
message.
registry.register("protobuf.person", ProtobufSerializer(person_pb2.Person))
ModelBase
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
cacheorm-0.0.1.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for cacheorm-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fede5d21ade5a4447f46dcf17d7217a6334a81f40b001b48285dcd1a014ab700 |
|
MD5 | 667ed16916b7c9d617b98a8e43af2be8 |
|
BLAKE2b-256 | d0c3484a5234754c40515eef459073f5c82683cb905bb919b9cfde48684ae266 |