@melchyore/adonis-cache
Version:
Cache package for AdonisJS V5
30 lines (29 loc) • 870 B
Plain Text
/*
|--------------------------------------------------------------------------
| File store
|--------------------------------------------------------------------------
|
| Use this store to store cache in files.
| The 'disk' value must point to an existing
| disk inside config/drive.ts, e.g:
| {
| {{ disk }}: {
| driver: 'local',
| visibility: 'private',
| root: Application.tmpPath('the-path-you-want-to-use'),
| },
| }
|
| Don't forget to inform Typescript about the new disk:
| Open the pre-existing contracts/drive.ts file and
| update the `DisksList` interface with the following code:
| {{ disk }}: {
| config: LocalDriverConfig
| implementation: LocalDriverContract
| }
|
*/
file: {
driver: 'file',
disk: '{{ disk }}'
},