Caching
Configuration
STORES = {
"default": "local",
"local": {
"driver": "file",
"location": "storage/framework/cache"
},
"redis": {
"driver": "redis",
"host": "127.0.0.1",
"port": "6379",
"password": "",
"name": "masonite4",
},
# ...
}File Cache
Redis
Memcached
Using the Cache
Storing Data
add
put
Getting Data
Checking Data Exists
Forgetting Data
Increment / Decrement Value
Remembering
Flushing the Cache
Last updated