Allow keyed cache access without data
wrapper via KeyedCacheSupporting
#140
Labels
enhancement
New feature or request
data
wrapper via KeyedCacheSupporting
#140
The
KeyedCacheSupporting
implementation wraps allCodable
values in adata
object.I can see why this is needed for
String
,Int
, etc, when usingCodable
with JSON.However, when getting data from a redis cache that is shared with different (non-vapor) services, I'd like to be able to skip the
data
wrapper and still useCodable
for my own objects.Is there a way to get or set
Codable
values without this data wrapper and still use keyed cache API?My current workaround is to get raw values using the
RedisClient
directly:Here is the current
KeyedCacheSupporting
implementation that uses thedata
wrapper:The text was updated successfully, but these errors were encountered: