-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache
More file actions
42 lines (35 loc) · 1.11 KB
/
cache
File metadata and controls
42 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { Env } from '@athenna/config'
export default {
/*
|--------------------------------------------------------------------------
| Default Cache Store Name
|--------------------------------------------------------------------------
|
| Athenna's cache API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default store.
|
*/
default: Env('CACHE_STORE', 'memory'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may configure the store connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Athenna. You are free to add more.
|
| Drivers: "redis", "memory"
|
*/
stores: {
memory: {
driver: 'memory'
},
redis: {
driver: 'redis',
url: Env('REDIS_URL', 'redis://localhost:6379?database=0')
}
}
}