{"repo":"tair-opensource/TairHash","free":true,"listed":false,"github":"https://github.com/tair-opensource/TairHash","clone":"git clone https://github.com/tair-opensource/TairHash.git","description":"A redis module, similar to redis hash, but you can set expiration and version for field.","language":"C","stars":248,"topics":["redis","module","hash","expiration","version"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Introduction 中文说明 TairHash is a hash data structure developed based on the redis module. TairHash not only has the same rich data interface and high performance as the native hash, but also can set the expiration and version for the field. TairHash provides an active expiration mechanism, even if the field is not accessed after expiration, it can be actively deleted to release the memory. The main features： - Supports all redis hash commands - Supports setting expiration and version for field - Support efficient active expiration (SCAN mode, SORT mode and SLAB mode) and passivity expiration for field - Support field expired event notification (based on pubsub) Active expiration SCAN MODE(default): - Do not sort TairHash globally (Smaller memory overhead) - Each TairHash will still use a sort index to sort the fields internally (For expiration efficiency) - The built-in timer will periodically use the SCAN command to find the TairHash that contains the expired field, and then check the sort index inside the TairHash to eliminate the field - All keys and fields in the sorting index are pointer references, no memory copy, no memory expansion problem Supported redis version : redis = 5.0 Advantages : can run in the low version of redis (redis = 5.0) Disadvantages : low efficiency of expire elimination (compared with SORT mode and SLAB mode) Usage : cmake with default option, and recompile SORT MODE： - Use a two-level sort index, the first level sorts the main key of tairhash, and","default_branch":null,"files":null,"tree":[],"storefront":"/r/tair-opensource","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tair-opensource/TairHash/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}