Git Product home page Git Product logo

Comments (3)

shenzhe avatar shenzhe commented on June 23, 2024

rl系列命令支持过期机制。

有两个配置来完成:
rl:ttl 10 //单位s , 强制设置所有key的过期时间为10ms (作用:淘汰冷数据)
rl:ttlcheck 5 //单位s , 配合上面的设置,如果一个key在 6~10s内被读取到,key的过期自动延期为10s (作用:热数据自动续期)

这两个参数,可跟据系统的具体需求来设置。

from redis-storage.

askie avatar askie commented on June 23, 2024

是否可以像redis一样,针对单个key设置ttl,过期后这个key的持久化数据会自动清理掉。
上面的命令是统一处理的命令,需要能够兼容redis的过期机制。

from redis-storage.

dapengbusi avatar dapengbusi commented on June 23, 2024

leveldb中的冷数据,有定期清理机制吗?譬如redis定时清理过期数据机制,没有的话,leveldb数据是否会膨胀。

from redis-storage.

Related Issues (20)

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.