Skip to content

Commit adeaed5

Browse files
committed
Mention in doc the cache store database in Redis
1 parent 73ecdfa commit adeaed5

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

db/redis.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Redis schema
22

3+
### Database non-cache (by default db 0)
4+
35
Key | Type | Value | Expiration | Description
46
-----------------------------------------------|--------|---------------------------------------------------------
57
`block/<account_id>` | string | 1 | x days | Not allowed to comment
@@ -12,8 +14,8 @@ Key | Type | Value
1214
`dashboard/<account_id>` | set | `<node_id>` | 1 week | Notifications from answers
1315
`img/<uri>` | hash | | no | Images, with fields 'created_at': seconds since Epoch, 'status': 'Blocked' if administratively blocked (by moderation), 'type': content-type like 'image/jpeg' (set by `img` daemon), 'checksum': SHA1 (set by `img` daemon), and 'etag': etag (set by `img` daemon)
1416
`img/blocked` | list | URIs | no | Images blocked by moderation team
15-
`img/err/<uri>` | string | error | 1h | Image fetch in error, like "Invalid content-type", created by `img` daemon
16-
`img/latest` | list | URIs | no, limited| Last images as `<uri>`, limited to NB_IMG_IN_LATEST = 100
17+
`img/err/<uri>` | string | error | no | Images in error, like "Invalid content-type", created by `img` daemon but removed by `dlfp`
18+
`img/latest` | list | URIs | no, limited| Last images, limited to NB_IMG_IN_LATEST = 100
1719
`img/updated/<uri>` | string | modtime | 1h | Cached images, created by `img` daemon, value like "Thu, 12 Dec 2013 12:28:47 GMT"
1820
`lang` | list | 2-letters code | no | Langages
1921
`lang/<xx>` | string | language name | no | Language name
@@ -37,3 +39,12 @@ Key | Type | Value
3739
`users/<login>/nb_votes` | string | integer | no | Total number of news voted in moderation, per moderator
3840
`users/<login>/nb_votes/<day_of_year>` | string | integer | 31 days | Number of news voted in moderation this day, per moderator
3941
`users/<user_id>/diff_karma` | string | integer | no | Karma change due to votes on comments/nodes, daily clean by cron
42+
43+
### Database cache-store (by default db 1)
44+
45+
Key | Type | Value | Expiration | Description
46+
-----------------------------------------------------|--------|---------------------------------------------------
47+
`views/home/index:<xxx>/home/<order>/<current_page>` | string | cache entry | 1 min | Homepage content ordering (unauthenticated access)
48+
`views/layouts/application:<xxx>/layouts/footer` | string | cache entry | 1 min | Site layout
49+
`views/news/show:<xxx>/news/show/<news_slug>` | string | cache entry | 1 min | News (unauthenticated access)
50+
`views/tags/_near:<xxx>/near_tags/<tag_name>` | string | cache entry | 1 min | Near tags

0 commit comments

Comments
 (0)