个人简介

Echo Blog


江湖无名 安心练剑
  • Redis Learn-26-Distributed Lock 分布式锁 Redlock
    使用Redis实现分布式锁 在许多环境中,分布式锁是一种非常有用的原语,其中不同的进程必须以互斥的方式处理共享资源。 有许多库和博客文章描述如何使用Redis实现DLM(分布式锁管理器),但每个库都使用不同的方法,许多使用比稍微复杂的设计所能实现的更低保证的简单方法。 本页面尝试提供一个更加规范的算法来使用Redis实现分布式锁。 我们提出了一种算法,称为 Redlock,它实现了一...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-25-二级索引 Secondary index
    Secondary indexing with Redis Redis is not exactly a key-value store, since values can be complex data structures. However it has an external key-value shell: at API level data is addressed by th...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-24-partion 分区
    Partitioning: how to split data among multiple Redis instances. Partitioning is the process of splitting your data into multiple Redis instances, so that every instance will only contain a subset ...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-23-keyspace notify
    Redis Keyspace Notifications IMPORTANT Keyspace notifications is a feature available since 2.8.0 Feature overview Keyspace notifications allows clients to subscribe to Pub/Sub channels in order ...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-22-mass data insert 大量数据插入
    Redis Mass Insertion Sometimes Redis instances need to be loaded with a big amount of preexisting(已经存在的) or user generated data in a short amount of time, so that millions of keys will be created ...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-21-LRU Cache
    Using Redis as an LRU cache When Redis is used as a cache, often it is handy to let it automatically evict(淘汰) old data as you add new one. This behavior is very well known in the community of de...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-20-Memory Optimize 内存优化续
    内存优化 Redis所有的数据都在内存中,而内存又是非常宝贵的资源。 如何优化内存的使用一直是Redis用户非常关注的问题。 本节深入到Redis细节中,探索内存优化的技巧。 redisObject对象 Redis存储的所有值对象在内部定义为redisObject结构体。 Redis存储的数据都使用redisObject来封装,包括string、hash、list、set、zse...
    2018-12-12 03:35:23 | Redis
  • Redis Learn-20-Memory Optimize 内存优化
    Special encoding of small aggregate data types Since Redis 2.2 many data types are optimized to use less space up to a certain size. Hashes, Lists, Sets composed of just integers, and Sorted Sets...
    2018-12-12 03:35:23 | Redis