Experience on using the keyvalue database redis and TTSERVER. Redisredis is a keyvalue storage system similar to memcached. it supports a large number of stored value types, including string, list, and set) and zset
Redis firstRedis is a key/value storage system similar to memcached. it supports a large number of stora
general redis configurations in this file are clearly explained. This section describes maxmemory.
If maxmemory is set, redis memory usage cannot exceed the set value when using redis. Once redis memory usage reaches the maximum value
(score, used for sorting)ZREM key member deletes a specified member from an Ordered SetZINCRBY key increment member adds _ increment _ if a member exists. Otherwise, it sets a member whose score is _ increment _.ZRANGE key start end: return the members of the specified range in ascending order.ZREVRANGE key start end returns the members of the specified range after descending order.ZRANGEBYSCORE key min max returns all ZCARD keys that match score> =
If the MySQL database is large, we can easily find out which tables occupy the space, but if the Redis memory is relatively large, we are not very easy to find out which (kind) keys Occupy space.
There are tools that can provide the necessary help, such as redis-rdb-tools can directly analyze the Rdb file to generate the report, but it does not achieve my requirements, and I do not want to build on it two
key5.7redis-zsetA Redis ordered collection is a collection of elements of type string, as well as a collection, and does not allow duplicate members. Add: Zadd keyname Scoren value Delete: Zrem keyname nember Remove one or more members from an ordered collection Zremrangebylex key min Max removes all members of the given dictionary interval in the ordered collec
, otherwise a member score to _INCREMENT_ will be setZrange Key start end returns the member of the specified range after ascending orderZrevrange Key start end returns the member of the specified range after descending sortZrangebyscore key min Max returns all members that conform to score >= min and score
Usage Experience:Individuals in the sense that redis speed is needless to say (soon), but very much
collectionZincrby Key Increment member adds _increment_ if a member is present, or it sets a score as _increment_Zrange Key start end returns a member of the specified range after ascending sortZrevrange Key start end returns a member of the specified range after descending sortZrangebyscore key min Max returns all member
Usage Experience:Personally feel that Redis speed is needless to say (soon), but ve
Redis Remote Dictionary Service--nosql Technology
One or five kinds of basic data types
String list Hash set sorted set (sorted collection)
Two or five kinds of features
(1) InMemory in memory similar to cache, is a key-value storage system
(2) Weakening the transaction is basically not the concept of a transaction, only in some places the transaction is traversed, and its traversal is not encountered error
Memcached:
High-performance distributed cache database
Key-value storage mode (HASHMAP)
Data persistence is not supported, all data is lost after server shutdown
C developed, based on the Libevent library, available on most linux,bsd,solaris, as well as in Windows and other OS
The client implements the software in a number of languages: C + +, PHP, Java, Python, Erlang, Perl, Lua,go, etc.
score member to add specified members to an ordered set and update score if the target exists (score, sort)Zrem key member deletes specified members from an ordered collectionZincrby Key Increment member adds _increment_ if a member is present, or it sets a score as _increment_Zrange Key start end returns a member of the specified range after ascending sortZrevrange Key start end returns a member of the specified range after descending sortZrangebyscore key min
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. It provides a variety of mainstream languages for the client, easy to use, while Redis supports master-slave synchronization. In addition to regular numeric values or strings, Redis's key values can also be in
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.