Redis-Xi-01-Redis Distributed Lock (Single Node Lua script)

Article directory Redis-Xi-01-Redis Distributed Lock (Lua script) Get Lock Release Lock Code test Code Testing process Redis-Xi-01-Redis Distributed Lock (Lua script) In SpringBook project, set key value nx px command is used to ensure the atomic operation of acquiring lock, and Lua script ...

Posted by rimedey on Wed, 02 Oct 2019 16:52:10 -0700

Using guava cache to cache hot data locally

Some hot data may be visited thousands of times in a short time, so besides placing it in redis, it can also be placed in local memory, which is JVM's memory. We can use google's guava cache component to implement local caching. We chose guava because it can control the size and timeout of key s and value s, configure LRU policies, and guava i ...

Posted by TropicalBeach on Wed, 02 Oct 2019 10:57:30 -0700

Spring cloud micro-service single sign-on based on redis cluster

yls2019-9-23 brief introduction This paper introduces how to implement single sign-on function in micro-service architecture. Create three services: Services that operate redis clusters for sharing data among multiple services Unified Authentication Center Service for Unified Login Authentication of the Whole System Service consumers for te ...

Posted by Rommeo on Wed, 02 Oct 2019 04:52:49 -0700

Sprboot-Integrated redis from Zero Learning

Add dependency <!-- spring boot2.0 Later, the default redisConnectionFactory by LettuceConnectionFactory,I want to continue using it here. jedis,Just do it. exclusion --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-da ...

Posted by Crackhead on Wed, 02 Oct 2019 01:54:30 -0700

Redis source code analysis: snapshot

Links to the original text: https://my.oschina.net/zipu888/blog/549579 redis 2.4.4 snapshot of redis achieves persistence by writing all data in memory to files. It should be noted ...

Posted by ScottRiley on Wed, 02 Oct 2019 01:16:05 -0700

What is Sentry? docker deployment

What is Sentry? Docker deployment 1. what is Sentry? 2. Sentry deploys services using mirrors 2.1 Download Mirror: 2.2 Start redis and postgres 2.3 Generate the secret key, remember to save the key after generation 2.4 Initialization of data structures 2.5 Start sentry's three containers 2.6 docker ...

Posted by fernado1283 on Tue, 01 Oct 2019 02:02:22 -0700

Asynchronous redis of Swoole learning

I. Asynchronous redis service installation Swoole Official Documents Guide - > Quick Start - > Asynchronous Redis client 1. swoole uses asynchronous redis preconditions redis services hiredis library (X) Compiling swoole requires adding -- enable-async-redis (X) Note: If your version of swoole is over 4.3, you only need to install redi ...

Posted by will35010 on Mon, 30 Sep 2019 21:34:28 -0700

Memory Cache Papers of Problems Easily Neglected in Beego

Preface When I blog based on beego, I encountered a strange problem: when using Memory Cache type caching, it's strange that the caching doesn't work, but it's okay to use redis. Because of the time problem, I didn't go deep into it. After all, at that time, I would actually use Memory as a cache. So I put it down, and today someone in the grou ...

Posted by Lord Sauron on Mon, 30 Sep 2019 01:32:45 -0700

[Redis5 Source Learning] An Analysis of the object Chapter of the redis command

baiyan Command usage Command Meaning: View some information about the specified key, usually for debugging or viewing internal code usageCommand format: OBJECT subcommand [key] OBJECT has four optional subcommand s: OBJECT REFCOUNT: View the reference count of the current key OBJECT ENCODING: View the encoding of the current key OBJECT IDLETIM ...

Posted by wkoneal on Fri, 27 Sep 2019 02:13:32 -0700

Falsk Framework Session and Flask-Session

Catalog Cookie and Session Session storage mechanism in Falsk Related Configurations Use the Flask-Session tripartite component Basic exercises Cookie and Session Cookie:#Storage size is limited, stored on the client, there is a security risk Cookies, meaning cookies, were proposed ...

Posted by megaalf on Thu, 26 Sep 2019 20:08:32 -0700