Protostuff Serialization of String

cause When using redis, in order to facilitate operation, the following help classes are written, including a help function for hmset, which is serialized using Protostuff serialization. /** * mset */ public <K extends Serializable, V extends Serializable> void hmset(String key, Map<K, V> hash, int expireSeconds) ...

Posted by Rongisnom on Sun, 30 Jun 2019 18:48:00 -0700

Redis Practical Instruction (3) - List

Lpush: The command inserts one or more values into the header of the list. If key does not exist, an empty list is created and LPUSH is performed. When the key exists but is not a list type, an error is returned. Lpushx: Inserts one or more values into the existing list header, and the operation is invalid if the list does not exist. Note th ...

Posted by satal keto on Sun, 30 Jun 2019 12:18:37 -0700

vertx realizes session sharing of redis version

Now more and more popular micro-service architecture, mention the micro-service architecture, you can think of spring boot and vertx bar! The former is more listened to than communicated, but today I share with you the latter vertx. For more information, read the vertx website http://vertx.io/docs/vertx-we... No more nonsense, go straight to ...

Posted by simon13 on Sat, 29 Jun 2019 15:20:17 -0700

Getting Verification Code under Spring MVC

Let me start with some personal opinions on login authentication codes. Users are not advised to enter authentication codes when they first log in, which has been well demonstrated on many websites. Only when users input authentication codes three or more times in a row will users be required to enter authentication codes. It is better not to ...

Posted by lemming_ie on Sat, 29 Jun 2019 10:32:55 -0700

Introduction to redis and common commands

Introduction to redis and common commands Introduction to redis Redis is an open source, BSD-licensed, key-value caching and storage system.Because Redis's keys include string, hash, list, set, sorted set, bitmap, and hyperloglog, they are often referred to as data structure servers.You can run atomic operations on these types, such as ap ...

Posted by morrisoner on Sat, 29 Jun 2019 09:07:29 -0700

shiro realizes user kickout function

It seems that most of the Java Web community still knows Kaitao's name. Many people's introductory tutorials such as spring mvc, spring, shiro started with Kaitao's blog. Shiro's single-user login function is also referenced from Kaitao's blog code. Chapter 18 Concurrent Login Number Control --"Learn Shiro from Me" Then the realizat ...

Posted by blt2589 on Fri, 28 Jun 2019 15:15:20 -0700

Redis Series (IV) -- Memory Elimination Mechanism (including Suggestions for Memory Optimization in Stand-alone Edition)

The memory of each redis server is limited, and not all memory is used to store information. Moreover, the implementation of redis does not optimize the memory too much, so the implementer has taken some measures to control the memory in order to prevent the memory from being too saturated. The structure of this paper is: (1) memory strateg ...

Posted by asurfaceinbetween on Fri, 28 Jun 2019 14:21:52 -0700

Nest, a TypeScript-based ode.js framework, is officially released! (2)

This article is a translation with the original address: https://kamilmysliwiec.com/nest-final-release-is-here-node-js-framework-built-top-of-typescript Author, @Kamil My liwiec The address of the last article is: https://segmentfault.com/a/1190000009560532 Middlewares Middleware is a function that is called before a routing handler. Middlewa ...

Posted by wscreate on Thu, 27 Jun 2019 11:28:50 -0700

Too many Spring MVC configurations? Try Spring Boot

Spring MVC believes that you are no longer unfamiliar, you may have a disgusting feeling about Spring's various XML configurations. Spring's official Spring boot has been published for a long time. Spring boot is a lightweight framework of "convention is better than configuration". Spring boot first solves all kinds of tedious XML con ...

Posted by mclamais on Tue, 25 Jun 2019 17:06:13 -0700

Redis serialization protocol

RESP Send Command Format The sending command format RESP specifies the following format for a command. CRLF stands for "r\n": * < Number of Parameters > CRLF Number of bytes in parameter 1 > CRLF Parameter 1 > CRLF ... Number of bytes of parameter N > CRLF Parameter N > CRLF In the case of set hello world, what yo ...

Posted by zeno on Tue, 25 Jun 2019 12:00:30 -0700