Understanding application.properties and application.yaml

In SpringBoot, there are two different formats for configuration files, one is properties and the other is yaml. Although properties files are common, yaml is more concise and uses more scenarios than properties, and many open source projects are configured using yaml (for example, Hexo).In addition ...

Posted by martins on Tue, 04 Feb 2020 20:29:20 -0800

Algorithm learning series - hash table, bloom filter, consistent hash, island problem, and concurrent query set

Article directory 1. Understand hash function and hash table 1.1 what is Hash 1.2 why there should be Hash 1.3 for example, chestnuts: 1. To use array storage, you need to create new arrays new int[]{2,5,9,13}, and then write a loop to traverse the search: 2. If the hash function is used for calcul ...

Posted by duk on Tue, 04 Feb 2020 00:09:04 -0800

Redis details - cluster

Redis details (7) - cluster Before version 3.0 of redis, high availability (HA) can be achieved through Redis Sentinel. After version 3.0, Redis Cluster was officially launched. Its main purpose is to achieve data sharding, but it can also achieve ha, which is currently recommended by the government. In the Redis Sentinel mode, each node needs ...

Posted by gardnc on Mon, 03 Feb 2020 06:59:45 -0800

Redis Cultivation - cardinality statistics: HyperLogLog

There is no end to learning. brief introduction HyperLogLog is an advanced data structure in Redis. It is mainly used for cardinal Statistics (de duplication Statistics) of massive data (2 ^ 64 data can be counted). It is characterized by high speed and small space (12KB). But there are errors in th ...

Posted by scavok on Sat, 01 Feb 2020 00:06:32 -0800

swoole battle in 2018 7-process details

Following the last chapter 2018 swoole 6-asynchronous redis This presentation swoole process management module Create child process New process.php <?php $process = new swoole_process(function(swoole_process $pro) { echo 'swoole Create process' . PHP_EOL; }, false); // If set to true, the terminal will not display standard o ...

Posted by sandsquid on Fri, 31 Jan 2020 12:04:36 -0800

Shiro + Redis custom session management

Original blog address This picture is very important!!! Town building 0x001 override SessionManager shiro provides three default implementations: DefaultSessionManager: for java se environment ServletContainerSessionManager: implementation used by default, Servlet container management DefaultWebSe ...

Posted by mhoward on Wed, 29 Jan 2020 09:19:02 -0800

Based on react, react hooks, redux, ts handwritten ant design pro, with supporting api of node, eggjs, ts, mysql, redis

introduce At the beginning, I needed an amdin template developed by react. After finding one side in the open source community, I compared the UI of Ant Design Pro. When I pulled down the code of Ant Design Pro for research, I found that there were too many contents. Besides react and redux, there wer ...

Posted by Spikey on Wed, 29 Jan 2020 02:22:14 -0800

Redis for spring boot

The following dependencies are introduced into the pom.xml of the project: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> To configure: #redis host spring.redis.host=192.168.3.18 View the RedisAutoConfigu ...

Posted by antonyjohn on Mon, 27 Jan 2020 07:16:10 -0800

Linked list accelerator -- Talking about skip list and its application in Redis

Background of problem As we all know, for the search of elements in an ordered set, if the set is stored through an array, then the binary search algorithm can quickly find elements by using the efficiency of array random access. So suppose that if the collection is stored through a linked list, can i ...

Posted by pages on Sun, 26 Jan 2020 21:39:31 -0800

Note: docker installs redis

search [root@lrz ~]# docker search redis NAME DESCRIPTION STARS OFFICIAL AUTOMATED redis Redis is an open source key-value store that... 7733 [OK] bitnami/redis ...

Posted by Clintonio on Mon, 20 Jan 2020 06:48:04 -0800