Skip to content

Commit 67f5388

Browse files
authored
Update README.md
1 parent b9ba407 commit 67f5388

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

README.md

+2-15
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,14 @@
77

88
## RediBox Memset
99

10-
Memset is a persistent, in memory and self updating cache tool. The main difference between Memset and [Cache](https://github.com/redibox/cache) is that Cache sets and returns data from specified triggers directly from Redis, whereas Memset consistently provides cached data from memory which is set via scheduled [Jobs](https://github.com/redibox/job).
10+
Memset is a persistent, in memory, self updating cache tool. The main difference between Memset and [Cache](https://github.com/redibox/cache) is that Cache sets and returns data from redis using specified triggers within your code, whereas Memset provides self updating cached data from memory which is accessible synchronously.
1111

1212
### When to use Memset
1313

1414
You should consider using Memset when:
1515

1616
- You have persistent data that doesn't need updating on demand
17-
- You always need certain data available quickly
18-
19-
### Example
20-
21-
#### Without Memset
22-
23-
You have a large database of products that is cached on your server. When you add a new product, one user will trigger the purge of the cache by hitting the newly changed URL - that user will then be stuck with a loading message whilst the whole cache rebuilds, this could be anything upto and beyond a minute. By that time your user has already left the app.
24-
25-
#### With Memset
26-
27-
You have a large database of products that is stored using Memset. When you add a new product, the Job that checks for new changes will run at it's predetermined interval and add the new product to the Memset data, the user will then simply see a new product on their screen. There's no interuption for any of the users.
28-
29-
Find out more about [Jobs](https://github.com/redibox/job).
30-
17+
- You always need certain data available quickly and is used frequently
3118

3219
### Installation
3320

0 commit comments

Comments
 (0)