iteration | description |
---|---|
geooperation | redis geospatial opertations, such as geoadd, georadius,... |
hashoperations | redis hash operations |
hyperloglogoperations | redis hyperloglog operations, such as pfadd, pfcount,... |
listoperations | redis list operations |
setoperations | redis set operations |
valueoperations | redis string (or value) operations |
zsetoperations | redis zset (or sorted set) operations |
boundgeooperations | redis key bound geospatial operations |
boundhashoperations | redis hash key bound operations |
boundkeyoperations | redis key bound operations |
boundlistoperations | redis list key bound operations |
boundsetoperations | redis set key bound operationsboundvalueoperations |
boundzsetoperations | redis zset (or sorted set) key bound operations |
现在尝试一把使用spring redis。
gradle 配置依赖库
spring redis 配置,这里使用最简单的配置,配置的值,例如连接redis的端口号是默认的
使用hashoperations实现前面提到的user数据类型的存储。
命令行查看redis里面的数据。
粉丝和关注功能实现,这里暂时就不实现了。
如对本文有疑问, 点击进行留言回复!!
MongoDB中数据的替换方法实现类Replace()函数功能详解
理解Redis持久化,RDB持久化和AOF持久化的不同处理方式
网友评论