Skip to content

A free open source IT asset/license management system

Improve Memcached settings (#6485)

Ben RUBSON4ffb8f14b844
diff --git a/.env.example b/.env.example
index 32d1074ba5..ae6cbe6b7e 100644
--- a/.env.example
+++ b/.env.example
@@ -72,13 +72,20 @@ ENABLE_CSP=false
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
+CACHE_PREFIX=snipeit
# --------------------------------------------
# OPTIONAL: REDIS SETTINGS
# --------------------------------------------
REDIS_HOST=null
REDIS_PASSWORD=null
-REDIS_PORT-null
+REDIS_PORT=null
+
+# --------------------------------------------
+# OPTIONAL: MEMCACHED SETTINGS
+# --------------------------------------------
+MEMCACHED_HOST=null
+MEMCACHED_PORT=null
# --------------------------------------------
# OPTIONAL: AWS S3 SETTINGS
diff --git a/config/cache.php b/config/cache.php
index f82b2e82de..c1af7b98ce 100644
--- a/config/cache.php
+++ b/config/cache.php
@@ -86,6 +86,6 @@ return [
|
*/
- 'prefix' => 'snipeit',
+ 'prefix' => env('CACHE_PREFIX', 'snipeit'),
];