Cache service enhancement with generics #407

cescoffier opened this Issue Jan 12, 2015 · 0 comments


None yet
1 participant

cescoffier commented Jan 12, 2015

The get method should take a generic type parameter:

public <T> T get(String key);

It lets us do such kind of things:

// No explicit cast required
String v = cache.get(key")

(It's just a syntactic sugar.)

@cescoffier cescoffier self-assigned this Jan 12, 2015

@cescoffier cescoffier added this to the 0.7.1 milestone Jan 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment