@Override protected byte[] serializeInternal(String string) { return STRING_SERIALIZER.serialize(string); }
@Override protected byte[] serializeInternal(String string) { return STRING_SERIALIZER.serialize(string); }
public SpringRedisCache(String name, byte[] prefix, RedisOperations<? extends Object, ? extends Object> redisOperations, long expiration) { super(name, prefix, redisOperations, expiration); this.redisOperations = redisOperations; this.usePrefix = prefix != null && prefix.length > 0; this.prefix = prefix; this.setOfKnownKeys = usePrefix ? new byte[] {} : new StringRedisSerializer().serialize(name + "~keys"); }
public SpringRedisCache(String name, byte[] prefix, RedisOperations<? extends Object, ? extends Object> redisOperations, long expiration, boolean allowNullValues) { super(name, prefix, redisOperations, expiration, allowNullValues); this.redisOperations = redisOperations; this.usePrefix = prefix != null && prefix.length > 0; this.prefix = prefix; this.setOfKnownKeys = usePrefix ? new byte[] {} : new StringRedisSerializer().serialize(name + "~keys"); }