redis学习笔记(三)
Spring data redis:
要求:
- Redis 版本 > 2.6
- 与 Lettuce 或 Jedis 集成,两种java开源Redis库.
Spring redis主要做的两件事:
- 连接Redis,不管使用哪种库,RedisConnection以及RedisConnectionFactory只能使用一套API进行Redis连接或操作
- 通过RedisTemplate操作Redis数据。RedisTemplate 提供高层抽象的redis 交互。
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。
- SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
粉丝和关注功能实现,这里暂时就不实现了。
更多精彩