<< Back to previous view

[CCACHE-20] Add some examples to github page Created: 08/Feb/12  Updated: 14/Oct/16

Status: Open
Project: core.cache
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Juha Syrjälä Assignee: Fogus
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File readme-patch.diff    

 Description   

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



 Comments   
Comment by Fogus [ 19/Feb/12 6:24 PM ]

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.

Comment by Marc Limotte [ 14/Oct/16 8:55 AM ]

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.

Comment by Marc Limotte [ 14/Oct/16 8:58 AM ]

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

Generated at Fri Dec 09 19:17:00 CST 2016 using JIRA 4.4#649-r158309.