Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions en-US/advanced/configuration_cheat_sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ Note: Actually, Gogs supports only SMTP with STARTTLS.

### Cache (`cache`)

|Name|Description
|-|-
|`ADAPTER`|Cache engine adapter, either `memory`, `redis`, or `memcache`. If you want to use `redis` or `memcache`, be sure to rebuild everything with build tags `redis` or `memcache`|`go build -tags='redis'`.
|`INTERVAL`|for memory cache only, GC interval in seconds.
|`HOST`|For redis and memcache, the host address and port number.
||Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`.
||Memache: `127.0.0.1:9090;127.0.0.1:9091`
Name|Description
----|-----------
`ADAPTER`|Cache engine adapter, either `memory`, `redis`, or `memcache`. If you want to use `redis` or `memcache`, be sure to rebuild everything with build tags `redis` or `memcache`|`go build -tags='redis'`.
`INTERVAL`|for memory cache only, GC interval in seconds.
`HOST`|For redis and memcache, the host address and port number.
Redis|Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`.
Memcache|Memache: `127.0.0.1:9090;127.0.0.1:9091`

### Session (`session`)

Expand Down