Giter Site home page Giter Site logo

cache-killer's Introduction

cache-killer

δΈ­ζ–‡

Overview

cache-killer is an advanced cache invalidation tool designed to maintain the consistency between your database and cache seamlessly. The primary goal of cache-killer is to simplify the process of cache management by automating the cache invalidation process. It aims to improve the traditional 'update-then-invalidate' model by parsing database changes and handling the cache invalidation automatically.

Features

  • Automatic Cache Invalidation: cache-killer listens to database changes and invalidates cache entries without the need to explicitly code the cache delete operations.
  • MySQL Support: Currently, cache-killer supports MySQL databases by reading binlog events to parse update and delete operations.
  • Cache Key Convention: It uses a convention schema:table_name:primary_key to form the cache key patterns which are then used to invalidate the corresponding cache entries.
  • Retrying Mechanism: For any cache invalidation failures, cache-killer places the keys into a retry queue and a scheduled task attempts deletion again.
  • Failure Notification: Upon reaching the maximum retry limit, cache-killer alerts the system administrator for manual intervention.
  • Planned Support for Additional Databases and Caches: Future enhancements include extending support to PostgreSQL and other caching databases.

Current Limitations

  • Supports only MySQL and Redis.
  • PostgreSQL and other caching solutions are planned for future releases.

Getting Started

    go run . -data <PATH_TO_DATA_FILE> -redis <REDIS_URL>

cache-killer's People

Contributors

m4n5ter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.