Skip to content

Handler for using Memcached with Symfony, Doctrine and Sessions

License

Notifications You must be signed in to change notification settings

superrbstudio/memcached-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Memcached Handler

A handler for Memcached to use for Session handling and caching in Symfony

Install the bundle

composer require superrb/memcached-handler

Create some environment variables

###> superrb/memcached-handler ###
MEMCACHED_HOST=127.0.0.1
MEMCACHED_PORT=11211
MEMCACHED_EXPIRE=14400
MEMCACHED_PREFIX=prefix_
###< superrb/memcached-handler ###

Storing sessions in Memcached

Add the following configuration to config/packages/framework.yaml

framework:
    session:
        handler_id: superrb_memcached_handler.session.handler.memcached

Other uses

You can use use the handler to create services for anything else you might want to store in Memcached

Issues and Troubleshooting

All issues: [email protected]

About

Handler for using Memcached with Symfony, Doctrine and Sessions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages