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里面的数据。
粉丝和关注功能实现,这里暂时就不实现了。