3. Follow, cancel, follow and fan list
#Follow and cancel
[the transfer of external chain pictures fails, and the source station may have anti-theft chain mechanism. It is recommended to save the pictures and upload them directly (img-xwZ8AhZC-1646567007779)(D:\TyporaNotes \ Niuke forum project \ Chapter III pictures \ image-20220306104936732.png)]
Design the key and Valu ...
Added by wyvern on Sun, 06 Mar 2022 14:01:22 +0200
Understand the difference between setup() and < script setup > < script > in vue3
setup ()
Setup () is a vue3 newly added component. Vue3 adopts the composite API. In order to use the composite API, we need an entry, which is called setup in the vue3 component.
(to put it simply, do not use the data, method and calculated in vue2. All data and methods are written in setup.)
Let's take a simple example:
<template>
...
Added by Helios on Sat, 05 Mar 2022 21:30:27 +0200
For the addition, deletion, modification and query of a User table, I wrote nearly 200 lines of code
1, Basic version (including basic operation)
This is the most common way of writing in our work
RedisUtil: encapsulated Redis related API operationsRedisKeyPreConst: the key prefix involved in Redis cacheUserMapper: operation database
The code implementation details are as follows:
public class UserServiceImpl implements Use ...
Added by myraleen on Sat, 05 Mar 2022 16:04:56 +0200
GoLang's slice bottom layer and expansion rules
GoLang's slice bottom layer and expansion rules
1. Structure
In the first part, where are the elements stored? In the second part, how many elements are stored and how many elements can be stored
2. Variable declaration int type slice
For example, declare an [] int, and the variable ints is composed of three parts on the right. The el ...
Added by ChrisDarl on Sat, 05 Mar 2022 14:07:33 +0200
12, Using listeners in Spring Boot
Preface: without any fancy preface, it is a basic and practical thing.
1. Introduction to listener
What is a web listener? Web listener is a special class in Servlet, which can help developers monitor specific events in the web, such as the creation and destruction of ServletContext, httpsession and ServletRequest; Creation, destruction an ...
Added by azul85 on Fri, 04 Mar 2022 22:13:33 +0200
Redisson distributed lock implementation principle and source code
Redisson distributed lock implementation principle and source codeSource code analysisSimple business codeIt is mainly responsible for the source code entry. There are three main methods to use distributed locksRLock lock = redissonClient. Getlock ("HPC lock") gets the class that implements reentrant distributed lockslock. Locklock. U ...
Added by PallaviDalvi on Fri, 04 Mar 2022 21:10:59 +0200
Redis - redis persistence
Introduction to persistence
Redis is an in memory database. If the database state in memory is not saved to disk, the database state in the server will be lost once the server process exits. So redis provides persistence function!
What is persistence The working mechanism of using permanent storage media to save data and recover the saved ...
Added by Sanjib Sinha on Fri, 04 Mar 2022 08:54:45 +0200
springboot+shiro+jwt+redis+cache to achieve stateless token login (perfect article!!)
Reprinted from: https://blog.csdn.net/stilll123456/article/details/88370355
The original blogger has been reorganized into the following personal blog:
SpringBoot integration shiro+jwt+redis - stateless token login (I) overviewSpringBoot integration shiro+jwt+redis - stateless token login (II) authorizationSpringBoot integration shiro+jwt+red ...
Added by ReeceSayer on Fri, 04 Mar 2022 05:22:13 +0200
Introduction to common redis commands
I. Redis command
Redis supports five data (structure) types: string, hash, list, set and Zset
Common command key management
keys * : Returns all keys that are satisfied ,Fuzzy matching, for example keys abc* representative abc initial key
exists key : Does the specified exist key,Returns 1 if it exists and 0 if it does not exist
expire k ...
Added by zypher11 on Fri, 04 Mar 2022 01:09:00 +0200
Easy to understand Redis data structure basic tutorial
Redis has five basic data structures: string, list, hash, set and zset. They are the most frequently used and widely used data structures in daily development. If you understand these five data structures thoroughly, you will master half of redis application knowledge.
string
First, let's start with string. String represents a variable byte ...
Added by LostOne on Thu, 03 Mar 2022 18:48:18 +0200