Spring模版类 RedisTemplate类.opsForSet()方法

Spring文档 https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/RedisTemplate.html#opsForSet()

opsForSet() 返回一个用于操作 Redis 中集合(Set)类型数据的接口。

文档内介绍 opsForSet

public SetOperations<K,V> opsForSet()

Description copied from interface: RedisOperations

Returns the operations performed on set values.

Specified by: opsForSet in interface RedisOperations<K,V>

Returns: set operations

posted @ 2025-04-11 14:11  kuki'  阅读(18)  评论(0)    收藏  举报