#include <core/cache_codec.h>
|
static std::string | encode (T const &value) |
| Converts a value of custom type T into a string. More...
|
|
static T | decode (std::string const &s) |
| Converts a string into a value of custom type T. More...
|
|
template<typename T>
struct core::CacheCodec< T >
Traits for serialization and deserialization of cache custom types. To use custom types, specialize this template for each custom type (other than string) in the core
namespace.
- Warning
- Do not specialize this struct for
std::string
! Doing so has no effect.
- See also
- PersistentCache
Converts a string into a value of custom type T.
Converts a value of custom type T into a string.
The documentation for this struct was generated from the following file:
- /build/persistent-cache-cpp-TIGFrs/persistent-cache-cpp-1.0.4+16.10.20160505.5/include/core/cache_codec.h