Recently, I am preparing for the next interview, including redis and redis as the key content.
Redis is an open-source log-type and key-value database written in ansi c language that supports Network, memory-based persistence, and provides APIs in multiple languages. It supports the following types of storage: String, list, set, zset, sorted set, and hash ).
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
Related Knowledge: When the redis memory dataset size increases to a certain size, a data elimination policy (recovery policy) will be implemented ).
Image Description (50 words at most)
#! /Usr/bin/ENV python3
Import redis
Import sys
Import time
R = redis. strictredis (host = '192. 0.0.1 ', Port = 127, DB = 0)
Try:
Id = SYS. argv [1]
Except t:
Print ('input argument error ')
SYS. Exit (0)
If R. llen (ID)> = 5 and time. Time ()-float (R. lindex (ID, 4) <= 3600:
Print ("You are forbidden logining ")
Else:
Print ('you are allowed to login ')
R. lpush (ID, time. Time ())
Login_func ()
Image Description (50 words at most)
Image Description (50 words at most)
Image Description (50 words at most)
The following describes the author and version history of apsaradb for redis:
The author of redis, salvatoresanfilippo, is from Sicily, Italy and now lives in Catania. He currently works at pivotal. The network name used is antirez.
August 02, 2012
Redis2.4.16 small update version nosql;
August 31, 2012
Redis2.4.17 small update version nosql;
Redis 2.6.3 was released in November 7, 2012,
High-performance K/V servers;
Released on September 13, April 30, 2013,
High-performance K/V servers;
Redis2.8.1 was released on August 1, November 25, 2013;
Redis3.0.0 was released on August 1, February 2015.
Cartoon | redis FAQ