Skip to content

feat(cache): Add internal cache to stomer#17

Open
dmtrs wants to merge 2 commits intomasterfrom
feat/cache
Open

feat(cache): Add internal cache to stomer#17
dmtrs wants to merge 2 commits intomasterfrom
feat/cache

Conversation

@dmtrs
Copy link
Contributor

@dmtrs dmtrs commented Jul 28, 2016

Add internal caching functionality to store. Store uses a Cache instance provided upon construction and use simple get/set methods to cache and invalidate cached data.

Pull request consist of Cache interface as long Store internal implementation changes and tests.

README.md Outdated
var store = new Store(cache);
```

Store use the Cache upon create/update & get of objects. **Attention**: Store.delete does not clean item from cache. You need to relly on ttl for this.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Low] Typo: relly --> rely

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants