Metadata-Version: 2.1
Name: cacheorm
Version: 0.0.1
Summary: A cache-based python ORM.
Home-page: https://github.com/leosocy/cacheorm
Author: leosocy
Author-email: leosocy@gmail.com
License: MIT
Project-URL: Code, https://github.com/leosocy/cacheorm
Project-URL: Issue tracker, https://github.com/leosocy/cacheorm/issues
Description: # A cache-based python ORM -- supports Redis, Memcached.
        
        [![Build Status](https://travis-ci.org/Leosocy/cacheorm.svg?branch=master)](https://travis-ci.org/Leosocy/cacheorm)
        [![codecov](https://codecov.io/gh/Leosocy/cacheorm/branch/master/graph/badge.svg)](https://codecov.io/gh/Leosocy/cacheorm)
        [![PyPI](https://img.shields.io/pypi/v/cacheorm)](https://pypi.org/project/cacheorm/)
        [![PyPI - License](https://img.shields.io/pypi/l/cacheorm)](https://github.com/Leosocy/cacheorm/blob/master/README.md)
        ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cacheorm)
        
        ## 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.
        
        ```python
        registry.register("protobuf.person", ProtobufSerializer(person_pb2.Person))
        ```
        
        ## ModelBase
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: serializers
Provides-Extra: dev
Provides-Extra: backends
