The Key expiration function has been added in SSDB1.6.7 to support automatic deletion of keys upon expiration. In this way, SSDB can be used as a persistent cache service. this function is the same as the ttlexpire function of Redis. The usage is: $ ssdb-setx (key, value, 60). This Code indicates that keyvalue is set and
The Key expiration function has been added in SSDB 1.6.7 to support automatic deletion of keys upon expiration, so that SSDB can be used as a persistent cache service. this function is the same as the ttl/expire function of Redis. The usage is $ ssdb-setx ('key', 'value', 60). This Code indicates that key = value is set, at the same time to 60
The Key expiration function has been added in SSDB 1.6.7 to support automatic deletion of keys upon expiration, so that SSDB can be used as a persistent cache service. this function is the same as Redis ttl/expire. The usage is as follows:
$ Ssdb-> setx ('key', 'value', 60 );
This Code indicates that keys are automatically deleted after key = value is set and 60 seconds later. You must note that TTL only supports the KV data structure and does not support hash (map) and zset.
Download SSDB NoSQL database Source: https://github.com/ideawu/ssdb
Related posts:
- SSDB 1.6.6 stable version released, supporting hclear/zclear
- SSDB with a single instance supporting hundreds of millions of requests per day
- SSDB adopts the milestone version release mechanism
- SSDB supports Snappy Compression
The article you are reading is: SSDB supports TTL expiration Mechanism
Linode VPS-web hosting in the united states | IT cattle blog website Aggregation