Package com.redis.om.spring.ops
Record Class RedisModulesOperations<K>
java.lang.Object
java.lang.Record
com.redis.om.spring.ops.RedisModulesOperations<K>
public record RedisModulesOperations<K>(RedisModulesClient client, org.springframework.data.redis.core.StringRedisTemplate template, com.google.gson.GsonBuilder gsonBuilder)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRedisModulesOperations(RedisModulesClient client, org.springframework.data.redis.core.StringRedisTemplate template, com.google.gson.GsonBuilder gsonBuilder) Creates an instance of aRedisModulesOperationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.com.google.gson.GsonBuilderReturns the value of thegsonBuilderrecord component.final inthashCode()Returns a hash code value for this object.opsForSearch(K index) org.springframework.data.redis.core.StringRedisTemplatetemplate()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RedisModulesOperations
public RedisModulesOperations(RedisModulesClient client, org.springframework.data.redis.core.StringRedisTemplate template, com.google.gson.GsonBuilder gsonBuilder) Creates an instance of aRedisModulesOperationsrecord class.- Parameters:
client- the value for theclientrecord componenttemplate- the value for thetemplaterecord componentgsonBuilder- the value for thegsonBuilderrecord component
-
-
Method Details
-
opsForJSON
-
opsForSearch
-
opsForBloom
-
opsForCountMinSketch
-
opsForCuckoFilter
-
opsForTopK
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
template
public org.springframework.data.redis.core.StringRedisTemplate template()Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
gsonBuilder
public com.google.gson.GsonBuilder gsonBuilder()Returns the value of thegsonBuilderrecord component.- Returns:
- the value of the
gsonBuilderrecord component
-