Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Caching
- This can cache AJAX requests across page-loads with custom max-ages:
- ```coffee
- FIVE_MINUTES = 5 * 60 * 1000
- App.Lib.Cache.promise().maxAge(FIVE_MINUTES).cache('/foo', -> $.get('/foo')).then (results) ->
- console.log results
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement