hit-box / hitbox

A high-performance caching framework suitable for single-machine and for distributed applications in Rust
MIT License
73 stars 6 forks source link

Use CacheKey in CacheBackend trait + cache key serializers #89

Closed singulared closed 1 year ago

singulared commented 1 year ago
singulared commented 1 year ago

Currently, in all CacheBackend methods, the cache key is passed as a String. We are going to replace it with the structure CacheKey

In addition, we need to add a CacheKey serialization mechanism to different formats, similar to Serializer. As a possible base serializer, I suggest using serde_qs and possibly serde_json