Closed bcardiff closed 3 years ago
@bcardiff we want to support (String | Symbol)
as the key for the store. We might need to map
the Symbol to a String if the Redis connection expects it here: https://github.com/amberframework/amber/blob/master/src/amber/router/session/redis_store.cr#L63
The current state is the following:
With 1.0 that will no longer compile due to https://github.com/crystal-lang/crystal/pull/9634.
What is the expected API?
Hash(String | Symbol, String)
orHash(String, String)
or anyinclude Enumerable({K, String})
? Whatever the choice it would be need to be reflected in theAbstractStore
, or remove the type restrictions in the implementation classes letting the type error show in the call-site.