current location:Home > Technical Articles > Database > Redis
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to uninstall redis on ubuntu
- 1. Use the shortcut key [ctrl+alt+t] to open the ubuntu terminal. 2. Enter the following command to uninstall redis. sudoapt-getautoremove--purgeredis-server#Uninstall redis3 and restart ubuntu. sudoapt-getautoremove--purgeredis-server#Uninstall redis-related operation commands: sudorm/usr/local/bin/redis-*#Delete all redis-related files in usr/local/bin/sudorm-r/etc/redis/#Delete Configuration directory and content
- Redis 3807 2023-05-28 10:37:05
-
- What is the Redis data structure?
- Redis is a high-performance key-value database. The emergence of redis has largely compensated for the shortcomings of keyvalue storage such as memcached, and can play a very good supplementary role to relational databases in some situations. 1. String The string type is the most basic data structure of redis. First of all, the key is the string type, and several other structures are built on the basis of the string type, so the string type can be used for the other four data structures. Learn the basics of Dharma. The string type can actually be a string (simple string, complex string (xml, json), number (integer, floating point number), binary (image, audio, video)), but the maximum cannot exceed 512M. make
- Redis 1314 2023-05-28 10:16:29
-
- How to use Redis for scheduled inventory caching function
- 1. Business background In order to omit the background of our company's projects, I decided to analogize this question to a question on an examination paper. As for the details of the business, you don’t need to pay attention to it~ Just look at the title: Suppose you are the best collector in a certain country, and you have various treasures with consecutive values in your hands. One day, you feel that collecting is too boring and plan to sell these treasures for some cash. But it is too low to sell these valuable treasures in the vegetable market. In the "Internet +" era, of course we have to use some different selling methods: There is a 300-room building (numbered 001 to 300) in your name, and there is a password-locked safe in each room. Every day (December 1 to December 31), you’ll pick 300 of the best
- Redis 1643 2023-05-28 10:12:23
-
- How docker compose installs redis cluster
- 1. Redis configuration information template file name: redis-cluster.tmpl#redis port port${PORT}#redis access password requirepass123456#redis access Master node password masterauth123456#Close protected mode protected-modeno#Enable cluster cluster-enabledyes#Cluster node Configure cluster-config-filenodes.conf#timeout cluster-node-timeout5000#cluster node IPhost mode is the host IP#cluste
- Redis 1616 2023-05-28 10:07:13
-
- How to use Redis to generate data in batches
- Redis comes with Debug method. The debug command provided by redis can be studied by yourself. It involves simulating redis abnormal scenarios such as oom, downtime, command execution failure, redis reloading rdb file, aof file, simulating redis command time-consuming, etc. We You can check the details through DEBUGhelp, as shown below. What you need to use here is the debugpopulate command. Use the following ####The number after represents how many key values are created 127.0.0.1:6379>DEBUGPOPULATE1000OK127.0.0.1:6379>DBSIZE( integer)1000127
- Redis 1559 2023-05-28 10:05:33
-
- Analysis of commands related to redis's list data type and how to use them
- Introduction to list List is a simple list of strings (in layman terms, it stores strings), sorted according to insertion order. You can add an element to the head (left) or tail (right) of a list, and a list can contain up to ^32-1 elements (more than 4 billion elements per list). The list in Redis is very similar to the LinkedList in Java. The bottom layer is a linked list structure. The insertion and deletion operations of the list are very fast, with a time complexity of 0(1). Unlike the insertion and deletion operations of the array structure, which require moving data. It's like a generalization, but the bottom layer of the list in redis is not as simple as a doubly linked list. When the amount of data is small, its underlying storage structure is a continuous block
- Redis 1120 2023-05-28 09:32:18
-
- How to solve the problem of garbled objects stored in springboot integrated redis
- Springboot integrated redis storage object garbled code is actually not a kind of garbled code, it is just something stored after serialization. When we use RedisTemplete to store objects, if the object is not serialized, an error will be reported. What we get after serialization is not The data we want, in order to solve this method, we can use StringRedisTemplete. Not much to say, the code uses redistemplete by default /***title:list** When what we save to redis is an object, we will find An error will be reported, prompting us that we need to serialize. *When we inherit the serialization interface and check the set value, we find that
- Redis 1894 2023-05-28 09:25:05
-
- How SpringBoot introduces redis
- Redis is an in-memory database that can cache data that needs to be accessed frequently to Redis, which can greatly improve access efficiency. Here's how to use it: 1. Install the Windows version of redis. Download and unzip it. Use the following command to start the server in the directory where you decompressed it: (Since the powershell of win10 is used here, you need to add ./, or you can avoid using it by configuring environment variables. ./)./redis-server.exeredis.windows.conf //It will not be registered as a windows service here. Closing the window will also close redis. Start the command terminal: ./r
- Redis 1789 2023-05-28 09:22:25
-
- How to implement SpringBoot+Redis+Lua distributed current limiting
- The main advantages of Redis supporting LUA scripts. The integration of LUA scripts will create more usage scenarios for the Redis database and bring out more new advantages: Efficiency: Reduce network overhead and delay, operate multiple redis server network requests, use LUA scripts Data reliability can be achieved with one request: Redis will execute the entire script as a whole, and no other commands will be inserted in the middle. Reusability: After the LUA script is executed, it will be permanently stored on the Redis server, and other clients can directly reuse it. Embeddability: It can be embedded in JAVA, C# and other programming languages, and supports cross-platform interaction with different operating systems. Simple and powerful: small and lightweight , low resource occupancy, and a programming language that supports procedural and objectification itself.
- Redis 1297 2023-05-28 08:55:05
-
- How to connect SpringBoot project to Redis cluster
- Configuration parameters Because this article does not introduce the establishment of a Redis cluster, here we assume that we already have a Redis cluster environment. In our project, we need to adjust the following parts to modify the configuration parameters, cluster node and password configuration; ensure that the Jedis version is introduced Support setting passwords, spring-data-redis1.8 or above, SpringBoot1.5 or above only support setting passwords; inject RedisTemplate; write tool classes; modify configuration parameters###############Redis cluster configuration ########################spring.custome.redis.cluster
- Redis 2552 2023-05-28 08:54:50
-
- How to use Go and Redis to implement distributed mutex locks and red locks
- Mutex lock There is a command in Redis that can be set if it does not exist. We can use this command to implement the mutex lock function. The standard implementation method recommended in the official Redis documentation is the SETresource_namemy_random_valueNXPX30000 series of commands, where: resource_name represents the resource to be locked. NX means that if it does not exist, set PX30000, which means the expiration time is 30000 milliseconds, that is, 30 seconds. The value of my_random_value must be unique on all clients, and the value of all lock competitors with the same key cannot be the same. The value must be a random number mainly to release the lock more safely. To release the lock
- Redis 1579 2023-05-28 08:54:44
-
- How to use java and redis to implement a simple hot search function
- It has the following functions: 1: The search bar displays the search history of the currently logged-in individual user, and deletes the personal history. 2: The user enters a character in the search bar, and the character is recorded in redis stored in zset format. The number of searches and the current timestamp (DFA algorithm is used, if you are interested, you can learn it on Baidu) 3: Whenever the user queries a character that already exists in redis, the number is directly accumulated to obtain the platform The ten most popularly queried data on the Internet. (You can write your own interface or add some prepared keywords directly to redis) 4: Finally, you need to do the indecent text filtering function. This is very important, you know. The code implements hot search and personal search record functions, mainly contr
- Redis 1872 2023-05-28 08:41:10
-
- How to implement persistent sessions through Nginx+Tomcat+Redis
- Deployment environment centos7nginx1.10.2tomcat7.0redis3.2.3mariadb5.5.44 required software package commons-pool2-2.2.jarjedis-2.5.2.jartomcat-redis-session-manager-2.0.0.jarsoloblog 1. nginx server configuration preparation before installation ntpdate172.18.0.1iptables-f install nginxyuminstallnginx modify the configuration file upstreamtomcatservers: create a back-end server group, to be in http
- Redis 1031 2023-05-28 08:37:05
-
- How to use the Redis visual monitoring tool Redislive
- RedisLive is a WEB-based Redis graphical monitoring tool written in Python. It is also an open source software that monitors Redis data in real time. It displays the key status, instance data and other information in redis in the form of WEB. The address of RedisLive on github: https://github.com/nkrode/RedisLiveRedisLive official website English document address: http://www.nkrode.com/article/real-time-dashboard-for-redis The principle of RedisLive is very simple, that is through monitoring scripts
- Redis 1326 2023-05-28 08:32:35
-
- How to set redis password under Linux
- The server has redis installed. For security, set the password to access redis-server. 1. Open the redis configuration file vi``/usr/local/redis/etc/redis``.conf, add the requirepass password, remove the # before bind127.0.0.1::1, save and exit 2. Close redis/usr/local/ redis/bin/redis-cli``shutdown starts redis/usr/local/redis/bin/redis-server``/usr/local/redis/etc/redis``.c
- Redis 3728 2023-05-28 08:23:59