{"action":"created","issue":{"url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/5","labels_url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/5/comments","events_url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/5/events","html_url":"https://github.com/igormatkovic/Laravel-4-Memcache/issues/5","id":55469120,"number":5,"title":"\"Class 'Memcache' not found\" on local machine","user":{"login":"briedis","id":500491,"avatar_url":"https://avatars.githubusercontent.com/u/500491?v=3","gravatar_id":"","url":"https://api.github.com/users/briedis","html_url":"https://github.com/briedis","followers_url":"https://api.github.com/users/briedis/followers","following_url":"https://api.github.com/users/briedis/following{/other_user}","gists_url":"https://api.github.com/users/briedis/gists{/gist_id}","starred_url":"https://api.github.com/users/briedis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briedis/subscriptions","organizations_url":"https://api.github.com/users/briedis/orgs","repos_url":"https://api.github.com/users/briedis/repos","events_url":"https://api.github.com/users/briedis/events{/privacy}","received_events_url":"https://api.github.com/users/briedis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-26T10:53:52Z","updated_at":"2015-01-26T12:55:55Z","closed_at":"2015-01-26T12:02:05Z","body":"I use memcache on the prod server, but file driver on local machine. The problem is that, even though, I have set session and cache drivers to file, the package still requires Memcache class. It works if I comment out the service provider, but that does not seem like a good idea.\r\n\r\nDo you have any other ideas how could I completely ignore this package on local env, but it still would work on production?\r\n\r\n![Exception screenshot](http://3priedez.net/images/uploads/img.2015.01.26.PrxHbH.png)"},"comment":{"url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/comments/71456574","html_url":"https://github.com/igormatkovic/Laravel-4-Memcache/issues/5#issuecomment-71456574","issue_url":"https://api.github.com/repos/igormatkovic/Laravel-4-Memcache/issues/5","id":71456574,"user":{"login":"igormatkovic","id":2323435,"avatar_url":"https://avatars.githubusercontent.com/u/2323435?v=3","gravatar_id":"","url":"https://api.github.com/users/igormatkovic","html_url":"https://github.com/igormatkovic","followers_url":"https://api.github.com/users/igormatkovic/followers","following_url":"https://api.github.com/users/igormatkovic/following{/other_user}","gists_url":"https://api.github.com/users/igormatkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/igormatkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igormatkovic/subscriptions","organizations_url":"https://api.github.com/users/igormatkovic/orgs","repos_url":"https://api.github.com/users/igormatkovic/repos","events_url":"https://api.github.com/users/igormatkovic/events{/privacy}","received_events_url":"https://api.github.com/users/igormatkovic/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T12:55:55Z","updated_at":"2015-01-26T12:55:55Z","body":"I think you have a old version of this lib. Just update with composer. \r\n\r\nand then this will work for you:\r\n\r\n'driver' => (function_exists('Memcache') ? 'memcache' : 'file'),"}}