Tagged

redis

A collection of 757 posts

notes

Redis string is a dynamic string, a string that can be modified. The implementation of the internal structure is similar to Java's ArrayList, which uses pre-allocation of redundant space to reduce frequent memory allocation.

PrefaceString is the simplest data structure in Redis, and its internal representation is an array of characters. Redis strings are dynamic strings, which can be modified. The implementation of the internal structure is similar to Java's ArrayList, which uses pre-allocation of redundant space to reduce frequent memory allocation. Internal implementation

installation configuration

Mac uses Homebrew to install redis, mysql and configure

Mac uses Homebrew to install redis, mysqlInstall HomebrewInstall HomebrewVerify installationBasic use of HomebrewInstall redisstart installationView the path and configuration file location after installing redisStart redisredis configurationModify operating modeModify the local area network to be accessibleEnable redis key expiration pushInstall mysql8start installationStart serviceLog in to mysql and set the root passwordSet

redis

20210609 Use of info command in redis

Info command usage summary (attribute name, attribute value, attribute description) 模块名 模块含义 Server 服务器信息Clients 客户端信息Memory 内存信息 Persistence 持久化信息Stats 全局统计信息(缓存命中率)Replication 复制信息CPU CPU消耗信息Commandstats 命令统计信息Cluster 集群信息Keyspace 数据库键统计信息One, info Server Contains some information about the Redis service itself, such as version number, operating mode, operating system version, TCP port, etc. redis-test:0&

redis

Redis introductory study notes two

redis12. Three special data types12.1 GEO geographical locationIntroduction:command:Command demonstration12.2 HyperLogLogIntroductionBasic command12.3 BitMapIntroductionBasic command13. Redis transactiontheorypractice14. Springboot integrates redisstep:Redis configurationRecommend a useful redis client toolRedis serialization configurationRedis toolsTest code15. conf configuration file analysisFamiliar with the basic configurationCommon configuration introduction12. Three special data types12.1 GEO