core.cache

Add some examples to github page

Details

  • Type: Task Task
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Could you add some examples on how to use core.cache to github readme?

Activity

Hide
Fogus added a comment -

Can do. In the meantime checkout how core.memoize uses it at https://github.com/clojure/core.memoize/blob/master/src/main/clojure/clojure/core/memoize.clj#L50

I think I might bring this through fn into core.cache in a more generic way.

Show
Fogus added a comment - Can do. In the meantime checkout how core.memoize uses it at https://github.com/clojure/core.memoize/blob/master/src/main/clojure/clojure/core/memoize.clj#L50 I think I might bring this through fn into core.cache in a more generic way.
Hide
Marc Limotte added a comment -

I've used this library a few times, and each time I have to re-learn that the cache is not stateful. I think it would be really helpful if this were clearly called out in the README and a trivial example supplied.

Show
Marc Limotte added a comment - I've used this library a few times, and each time I have to re-learn that the cache is not stateful. I think it would be really helpful if this were clearly called out in the README and a trivial example supplied.
Hide
Marc Limotte added a comment -

@alexmiller
Attaching a diff with a note about cache state and and an example.

Show
Marc Limotte added a comment - @alexmiller Attaching a diff with a note about cache state and and an example.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: