SSDB supports TTL expiration

Source: Internet
Author: User
Tags web hosting
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:
  1. SSDB 1.6.6 stable version released, supporting hclear/zclear
  2. SSDB with a single instance supporting hundreds of millions of requests per day
  3. SSDB adopts the milestone version release mechanism
  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.