{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/893","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/893/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/893/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/893/events","html_url":"https://github.com/webpack/webpack/issues/893","id":62208268,"number":893,"title":"Documentation for using custom cache objects?","user":{"login":"wordofchristian","id":555044,"avatar_url":"https://avatars.githubusercontent.com/u/555044?v=3","gravatar_id":"","url":"https://api.github.com/users/wordofchristian","html_url":"https://github.com/wordofchristian","followers_url":"https://api.github.com/users/wordofchristian/followers","following_url":"https://api.github.com/users/wordofchristian/following{/other_user}","gists_url":"https://api.github.com/users/wordofchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/wordofchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordofchristian/subscriptions","organizations_url":"https://api.github.com/users/wordofchristian/orgs","repos_url":"https://api.github.com/users/wordofchristian/repos","events_url":"https://api.github.com/users/wordofchristian/events{/privacy}","received_events_url":"https://api.github.com/users/wordofchristian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/documentation","name":"documentation","color":"d4c5f9"},{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-16T20:59:58Z","updated_at":"2016-03-03T09:23:34Z","closed_at":null,"body":"The docs show that you can supply a custom object to be used as the cache between multiple processes, http://webpack.github.io/docs/configuration.html#cache but it doesn't say much about how that object should behave. Specifically I'd like to use memecached and https://github.com/alevy/memjs. Any ideas on how to do this?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/191673739","html_url":"https://github.com/webpack/webpack/issues/893#issuecomment-191673739","issue_url":"https://api.github.com/repos/webpack/webpack/issues/893","id":191673739,"user":{"login":"mwager","id":999748,"avatar_url":"https://avatars.githubusercontent.com/u/999748?v=3","gravatar_id":"","url":"https://api.github.com/users/mwager","html_url":"https://github.com/mwager","followers_url":"https://api.github.com/users/mwager/followers","following_url":"https://api.github.com/users/mwager/following{/other_user}","gists_url":"https://api.github.com/users/mwager/gists{/gist_id}","starred_url":"https://api.github.com/users/mwager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwager/subscriptions","organizations_url":"https://api.github.com/users/mwager/orgs","repos_url":"https://api.github.com/users/mwager/repos","events_url":"https://api.github.com/users/mwager/events{/privacy}","received_events_url":"https://api.github.com/users/mwager/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T09:23:34Z","updated_at":"2016-03-03T09:23:34Z","body":"I cannot get this to work. In the second run I can see that my custom object is filled (Object.keys(myCacheObject).length > 0), but the build is not faster at all. Am I doing anything wrong?\r\n\r\nSomewhere outside:\r\n\r\n    var myCacheObject = {};\r\n\r\nConfig:\r\n\r\n    cache: myCacheObject"}}