Feature Request: Memcache Support #65

Closed
opened 2026-02-04 16:28:33 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @armouredking on GitHub (Feb 27, 2016).

Originally assigned to: @ssddanbrown on GitHub.

So it may already have this and I just haven't figured out how to set it up. At the moment, it looks like BSA is using file caching written to bootstrap/cache using options in the .env file. I looked at Laravel's memcache setups but they didn't seem to feature the .env file itself in the reading material I perused.

It'd be nice to have it support Memcache though, in order to allow for HA and session saving. PHP provides this via this sort of system. Using memcache in combination with unison ( just sync file stores every 5 mins with cron; gets around needing something heavy duty like ceph / gluster or offsite like Amazon ) is how I manage HA on all my other PHP apps.

Originally created by @armouredking on GitHub (Feb 27, 2016). Originally assigned to: @ssddanbrown on GitHub. So it may already have this and I just haven't figured out how to set it up. At the moment, it looks like BSA is using file caching written to `bootstrap/cache` using options in the `.env` file. I looked at Laravel's memcache setups but they didn't seem to feature the `.env` file itself in the reading material I perused. It'd be nice to have it support Memcache though, in order to allow for HA and session saving. PHP provides this via [this sort of system](https://www.digitalocean.com/community/tutorials/how-to-share-php-sessions-on-multiple-memcached-servers-on-ubuntu-14-04). Using memcache in combination with unison ( just sync file stores every 5 mins with cron; gets around needing something heavy duty like ceph / gluster or offsite like Amazon ) is how I manage HA on all my other PHP apps.
OVERLORD added the 🛠️ Enhancement label 2026-02-04 16:28:33 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 27, 2016):

Memcache support is baked into laravel so it'll just be a case of exposing the config to be editable via the .env file. I'll get this in the next release.

If you're urgent for this feature you can currently set the following variables in the .env file:

CACHE_DRIVER=memcached
SESSION_DRIVER=memcached

Then edit the config/cache.php file, search for memcached and you can edit the server details. Just beware this will be overwritten when you next update.

@ssddanbrown commented on GitHub (Feb 27, 2016): Memcache support is baked into laravel so it'll just be a case of exposing the config to be editable via the `.env` file. I'll get this in the next release. If you're urgent for this feature you can currently set the following variables in the `.env` file: ``` CACHE_DRIVER=memcached SESSION_DRIVER=memcached ``` Then edit the `config/cache.php` file, search for memcached and you can edit the server details. Just beware this will be overwritten when you next update.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#65