fettler-0.1.0


توضیحات

Auto refresh cache of redis with MySQL binlog
ویژگی مقدار
سیستم عامل -
نام فایل fettler-0.1.0
نام fettler
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده long2ice
ایمیل نویسنده long2ice@gmail.com
آدرس صفحه اصلی https://github.com/long2ice/fettler
آدرس اینترنتی https://pypi.org/project/fettler/
مجوز Apache-2.0
# Fettler [![image](https://img.shields.io/pypi/v/fettler.svg?style=flat)](https://pypi.python.org/pypi/fettler) [![image](https://img.shields.io/github/license/long2ice/fettler)](https://github.com/long2ice/fettler) [![pypi](https://github.com/long2ice/fettler/actions/workflows/pypi.yml/badge.svg)](https://github.com/long2ice/fettler/actions/workflows/pypi.yml) [![ci](https://github.com/long2ice/fettler/actions/workflows/ci.yml/badge.svg)](https://github.com/long2ice/fettler/actions/workflows/ci.yml) ## Introduction `Fettler` is a service that help you refresh redis cache automatically. By listening on MySQL binlog, you can refresh redis cache in a timely manner and devoid of sensation or consciousness. ![architecture](./images/architecture.png) ## Install Just install from pypi: ```shell > pip install fettler ``` ## Usage ### Config file The example can be found in [config.yml](./config.yml). ### Run services First you should run the services, which include `producer`, `consumer`. #### Use `docker-compose`(recommended) ```shell docker-compose up -d --build ``` Then the services is running. #### Run manual ##### Run producer The producer listens on MySQL binlog and send data changes to redis message queue. ```shell > fettler produce ``` ##### Run consumer The consumer consume message queue and delete invalid caches by data changes and refresh policy registered from server. ```shell > fettler consume ``` ## Register cache refresh policy See [examples](./examples) to see how to add cache refresh policy in you application. ## License This project is licensed under the [Apache-2.0](./LICENSE) License.


نیازمندی

مقدار نام
- aioredis
- asyncmy
- ciso8601
- click
- dynaconf
- loguru


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl fettler-0.1.0:

    pip install fettler-0.1.0.whl


نصب پکیج tar.gz fettler-0.1.0:

    pip install fettler-0.1.0.tar.gz