Skip to content

Instantly share code, notes, and snippets.

View dkemper's full-sized avatar

Daniel Kemper dkemper

  • Munich, Germany
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkemper
dkemper / Application\Service\MemcachedStorageFactory.php
Last active January 27, 2021 18:59
Zend Framework 2 - Session Memcached Configuration with Failover
<?php
namespace Application\Service;
use Zend\Cache\Storage\Adapter\MemcachedOptions;
use Zend\Cache\Storage\Adapter\MemcachedResourceManager;
use Zend\Cache\StorageFactory;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Session\SaveHandler\Cache;
@dkemper
dkemper / 0_reuse_code.js
Created October 31, 2013 08:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console