Cartoon | redis FAQ (1)

Source: Internet
Author: User

Recently, alicloud is 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 ).

 

 

Related Knowledge: When the redis memory dataset size increases to a certain size, a data elimination policy (recovery policy) will be implemented ).

 

 

1234567891011121314151617 #!/usr/bin/env python3import redis import sys import time  = redis.StrictRedis(host=127.0.0.1′, port=6379, db=0try:       id = sys.argv[1]except:       print(‘input argument error’)     sys.exit(0if r.llen(id) >= 5 and time.time() – float(r.lindex(id4)) <= 3600:       print(“you are forbidden logining”)else:       print(‘you are allowed to login’)     r.lpush(id, time.time())     # login_func()

  

 

 

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.

September August 02, 2012: redis2.4.16 was slightly updated with nosql;

September August 31, 2012: redis2.4.17 was slightly updated with nosql;

April November 7, 2012: redis 2.6.3 was released, featuring a high-performance K/V server;

July 13, April 30, 2013: redis2.6.13 was released with a high-performance K/V server;

November 25, 2013: redis2.8.1 was released;

April February 2015: redis3.0.0 was released.

Cartoon | redis FAQ (1)

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.