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
Interface RedisCachePrefix

All Known Implementing Classes:
  DefaultRedisCachePrefix

    public interface RedisCachePrefix

Contract for generating 'prefixes' for Cache keys saved in Redis. Due to the 'flat' nature of the Redis storage, the prefix is used as a 'namespace' for grouping the key/values inside a cache (and to avoid collision with other caches or keys inside Redis).

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

Method Detail

### prefix

    byte[] prefix(String cacheName)

  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.

  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