![]() ![]() Root ubuntu: / home/ubuntu/docker/redis $docker exec - it redis redis - cli 127.0.0.1:6379 > Copy the code medis Note: redis is the container name specified when redis is started in the previous section: –name redis(the container ID can also be used instead). Run docker exec it redis redis-cli on the host to enter the redis client in the container. -d: Runs in the background and outputs the container ID.Docker Hub: Docker container run \ -rm \ -name redis \ -p 6379:6379 \ -d redis:5.0 Copy the code This article uses Docker to start the Redis server. This paper describes the simple use of Redis, including the use of Docker to start Redis server, the use of Redis client, Redis common data structure and its use methods and scenarios. In short, a cache is a set of copies of the original data on the computer, bringing the data closer to the user for faster access. It usually uses the expensive but faster SRAM technology instead of DRAM technology like system main memory. The cache: The cacheReferred to as” The cacheIn its original sense, it refers to a type of RAM that has faster access speed than ordinary random access memory (RAM).Docker: is an open source application container engine.NoSql: refers to a non-relational database.Can be used as a database, cache, and message broker. RedisRedis is an open source (BSD licensed) in-memory data structure storage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |