Skip to main content

Fettler

image image pypi ci

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

Install

Just install from pypi:

> pip install fettler

Usage

Config file

The example can be found in config.yml.

Run services

First you should run the services, which include producer, consumer.

Use docker-compose(recommended)

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.

> fettler produce
Run consumer

The consumer consume message queue and delete invalid caches by data changes and refresh policy registered from server.

> fettler consume

Register cache refresh policy

See examples to see how to add cache refresh policy in you application.

License

This project is licensed under the Apache-2.0 License.

Metadata

Release files for fettler 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fettler 0.1.0
File Size Uploaded
fettler-0.1.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fettler 0.1.0
File Interpreter ABI Platform
fettler-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / fettler-0.1.0.tar.gz

Download URL fettler-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d3a4448ffdc0b48fd2a2754d42346408e0305b3e408bb1709a7119a85189925b
BLAKE2b-256 checksum
How to use checksums
e01d9131c17c914868cf5053eebb15613afcc8b7edf9949e164fe0867c6307d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.8

Release files / fettler-0.1.0-py3-none-any.whl

Download URL fettler-0.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c919d3765e72d2767ee7a7c020c23a1acd4553132a96a14e805e55f8834792e
BLAKE2b-256 checksum
How to use checksums
c9cac8d43739b83cb1a8c9f4cecc18ee0f75a511d741c70028e5db4512524ae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page