Category:Redis

  • (Do not request a bean from a BeanFactory in a destroy method implementation!)

    Time:2022-5-26

    Exception: Singleton bean creation not allowed while singletons of this factory are in destruction (do not request a bean from a beanfactory in a destruction method implementation!) If your project references spring cloud starter Zipkin jar and spring boot starter data redis jar at the same time, redis will not be connected and this exception […]

  • Redis Client On Error: Error: write ECONNABORTED Config right

    Time:2022-5-26

    Solve the redis client on error: error: write econnaborted config rightwe Problem Description: Solution: 1. First, check whether the firewall of Linux is turned on Turn off the firewall [[email protected]]# systemctl stop firewalld.service Open 6379 port number [[email protected]]# sudo firewall-cmd –zone=public –add-port=6379/tcp –permanent success [[email protected]]# sudo firewall-cmd –reload success 2. Check whether the redis startup […]

  • Springboot 2.6.3 integrated redis stepped on the pit

    Time:2022-5-26

    The integration steps are as follows: development tools: idea2019, JDK1.8, maven 3.5.4 Idea creates a new project, selects spring initializer, selects spring boot version 2.6.3 (the latest version at present), and adds web, and redis modules. After successful construction, the POM file is as follows: <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> […]

  • How to enable redis cache with springboot

    Time:2022-5-26

    catalogue Redis cache Main steps Concrete practice Overall directory structure Configure redis cluster in YML file Set serialized bean Write business controller Additional notes on caching Inspection results Didn’t you say that redis can be used as a cache beforeNow let’s configure the redis cache used by springboot Redis cache Why use redis as cacheThe […]

  • Redis visualization tool redisinsight

    Time:2022-5-25

    Redisinsight Ubuntu deployment of redis visualization tool 1、 Download redisinsight 2、 Disposition 3、 Run redisinsight 4、 Use Redisinsight: monitor redis Use the browser based management interface to check redis data, monitor health status and execute runtime server configuration for redis deployment. Explore and interact with your redis data Reduce redis memory usage Real time monitoring […]

  • Springboot notes (III) redis

    Time:2022-5-25

    Redis database **Soul torture: * * didn’t you learn MySQL and save data? Why do you learn another database? Previously, we learned MySQL database, which is a traditional relational database. We can use Mysql to better manage and organize our data. Although in small web applications, only a MySQL + mybatis built-in cache system can […]

  • Redisjason Chinese full text retrieval

    Time:2022-5-25

    Redisjason Chinese full text retrieval RedisJson Redisjason, which is popular on the Internet recently, is believed to be familiar to everyone. There is also a performance post that says yesRedisjason was born in the sky, with the performance of ES and Mongo!Of course, these hundreds of times improvements may be more objective. I am more […]

  • The most detailed actual combat of docker installation redis in history (including the illustration of each step)

    Time:2022-5-25

    Not only teach you to install, but also teach you to delete. Each line of command is illustrated, which is absolutely understandable. If you are interested in building a redis cluster, you can take a look at this article Docker builds redis cluster cluster environmentHope to help you 1、 Docker searches redis images Command: docker […]

  • In order to grasp the redis data structure, I drew 40 pictures (full version)

    Time:2022-5-25

    Hello, I’m Kobayashi. Why is redis so fast? In addition to being an in memory database, which enables all operations to be carried out in memory, there is another important factor. Its data structure enables redis to process data efficiently when we add, delete, check and modify data. Therefore, let’s talk about redis data structure […]

  • Detailed explanation of redis underlying data structure

    Time:2022-5-25

    Redis, as a key value storage system, has the following data structure: Redis does not have the concept of table. The DB corresponding to redis instance is distinguished by number. DB itself is the namespace of key. For example, user: 1000 as the key value represents the element with ID 1000 in the user namespace, […]

  • Solution to redis key value occurrence \ XAC \ xed \ X00 \ x05t \ X00 &

    Time:2022-5-24

    When using redis to store key value pairs, the author found that the stored key and value have more prefixes of \ XAC \ xed \ X00 \ x05t \ X00 &, and the author stores strings. The results are shown in the figure below, with unexpected prefixes. The reason for this problem is,redis templateStore […]

  • An article thoroughly understands redis persistence: RDB and AOF

    Time:2022-5-24

    Why persistence? Redis’s operations on data are based on memory. In case of unexpected situations such as process exit and server downtime, if there is no persistence mechanism, the data in redis will be lost and cannot be recovered. With the persistence mechanism, redis can use the previously persistent files for data recovery at the […]