Package app.ductape.sdk.cache
Record Class CacheManager.CacheManagerConfig
java.lang.Object
java.lang.Record
app.ductape.sdk.cache.CacheManager.CacheManagerConfig
- Enclosing class:
- CacheManager
-
Constructor Summary
ConstructorsConstructorDescriptionCacheManagerConfig(String workspaceId, String publicKey, String userId, String token, EnvType envType, CacheManager.RedisClient redisClient) Creates an instance of aCacheManagerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenvType()Returns the value of theenvTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepublicKeyrecord component.Returns the value of theredisClientrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.Returns the value of theworkspaceIdrecord component.
-
Constructor Details
-
CacheManagerConfig
public CacheManagerConfig(String workspaceId, String publicKey, String userId, String token, EnvType envType, CacheManager.RedisClient redisClient) Creates an instance of aCacheManagerConfigrecord class.- Parameters:
workspaceId- the value for theworkspaceIdrecord componentpublicKey- the value for thepublicKeyrecord componentuserId- the value for theuserIdrecord componenttoken- the value for thetokenrecord componentenvType- the value for theenvTyperecord componentredisClient- the value for theredisClientrecord component
-
-
Method Details
-
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). -
workspaceId
Returns the value of theworkspaceIdrecord component.- Returns:
- the value of the
workspaceIdrecord component
-
publicKey
Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
envType
Returns the value of theenvTyperecord component.- Returns:
- the value of the
envTyperecord component
-
redisClient
Returns the value of theredisClientrecord component.- Returns:
- the value of the
redisClientrecord component
-