Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.data.redis.cache
Class DefaultRedisCachePrefix

    java.lang.Object
      org.springframework.data.redis.cache.DefaultRedisCachePrefix

All Implemented Interfaces:
  RedisCachePrefix

    public class DefaultRedisCachePrefix

extends Object
implements RedisCachePrefix

Default implementation for `RedisCachePrefix` which uses the given cache name and a delimiter for creating the prefix.

Constructor Summary
`DefaultRedisCachePrefix()`
`DefaultRedisCachePrefix(String delimiter)`

Method Summary
`byte[]` | `prefix(String cacheName)` Returns the prefix for the given cache (identified by name).

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultRedisCachePrefix

    public DefaultRedisCachePrefix()

### DefaultRedisCachePrefix

    public DefaultRedisCachePrefix(String delimiter)

Method Detail

### prefix

    public byte[] prefix(String cacheName)

  Description copied from interface: `RedisCachePrefix`
  Returns the prefix for the given cache (identified by name). Note the prefix is returned in raw form so it can be saved directly to Redis without any serialization.

  Specified by:
    `prefix` in interface `RedisCachePrefix`
  Parameters:
    `cacheName` - the name of the cache using the prefix
  Returns:
    the prefix for the given cache.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD