mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 03:22:32 +08:00
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
)
|
|
|
|
func init() {
|
|
config := facades.Config()
|
|
config.Add("cache", map[string]any{
|
|
// Default Cache Store
|
|
//
|
|
// This option controls the default cache connection that gets used while
|
|
// using this caching library. This connection is used when another is
|
|
// not explicitly specified when executing a given caching function.
|
|
"default": config.Env("CACHE_STORE", "memory"),
|
|
|
|
// Cache Stores
|
|
//
|
|
// Here you may define all the cache "stores" for your application as
|
|
// well as their drivers. You may even define multiple stores for the
|
|
// same cache driver to group types of items stored in your caches.
|
|
// Available Drivers: "memory", "redis", "custom"
|
|
"stores": map[string]any{
|
|
"memory": map[string]any{
|
|
"driver": "memory",
|
|
},
|
|
},
|
|
|
|
// Cache Key Prefix
|
|
//
|
|
// When utilizing a RAM based store such as APC or Memcached, there might
|
|
// be other applications utilizing the same cache. So, we'll specify a
|
|
// value to get prefixed to all our keys, so we can avoid collisions.
|
|
// Must: a-zA-Z0-9_-
|
|
"prefix": "panel_cache",
|
|
})
|
|
}
|