Redis "Keys" a statement

Source: Internet
Author: User

  • DEL----------------------------------Delete the given one or morekey
  • DUMP--------------------------------Serialize given key, and return the serialized value
  • EXISTS------------------------------checks for the existence of a given key
  • EXPIRE------------------------------for a given key set time to live, and when key it expires (time to live 0 ), it will be automatically deleted, Unit: Seconds
  • Expireat---------------------------Set the time-to-live for a given key with a Unix timestamp
  • KEYS--------------------------------Find All pattern thekey
  • The MIGRATE----------------------------is key atomically routed from the current instance to the specified database on the target instance, and once it is successfully delivered, it is guaranteed to appear on the key target instance, and the current instance is key deleted.
  • Move-------------------------------moves the current database key into a given database db .
  • The Object-----------------------------command allows you to view key a given Redis object from within. (usually used in debug debugging)
  • PERSIST----------------------------Remove a given time-to- key live so that key never expires.
  • Pexpire----------------------------with expire command, only unit: milliseconds
  • Pexpireat-------------------------with expireat command, only unit: milliseconds
  • Pttl-------------------------------- key The remaining lifetime returned in milliseconds
  • Randomkey-----------------------randomly returned from the current database (without deleting) akey
  • RENAME----------------------------will be key renamednewkey,newkey存在,则覆盖
  • Renamenx-------------------------with rename, only when Newkey is present, returns 0 (not overwritten)
  • The RESTORE---------------------------deserializes the given serialized value and associates it with the given key .
  • Sort-------------------------------Returns or saves key the sorted elements in the given list, collection, ordered collection.
  • TTL---------------------------------the same as Pttl, just the unit is: seconds
  • Type--------------------------------returns the key types of stored values.
  • The Scan-------------------------------Scan command and its associated Sscan commands, HSCAN commands, and Zscan commands are used to iterate incrementally (incrementally iterate) a set of elements (a Collection of elements)

Redis "Keys" a statement

Related Article

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.