{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/1316","labels_url":"https://api.github.com/repos/astaxie/beego/issues/1316/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1316/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/1316/events","html_url":"https://github.com/astaxie/beego/issues/1316","id":102139876,"number":1316,"title":"Cache | panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"nirajNijju","id":3162172,"avatar_url":"https://avatars.githubusercontent.com/u/3162172?v=3","gravatar_id":"","url":"https://api.github.com/users/nirajNijju","html_url":"https://github.com/nirajNijju","followers_url":"https://api.github.com/users/nirajNijju/followers","following_url":"https://api.github.com/users/nirajNijju/following{/other_user}","gists_url":"https://api.github.com/users/nirajNijju/gists{/gist_id}","starred_url":"https://api.github.com/users/nirajNijju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirajNijju/subscriptions","organizations_url":"https://api.github.com/users/nirajNijju/orgs","repos_url":"https://api.github.com/users/nirajNijju/repos","events_url":"https://api.github.com/users/nirajNijju/events{/privacy}","received_events_url":"https://api.github.com/users/nirajNijju/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T13:34:08Z","updated_at":"2015-08-20T14:35:41Z","closed_at":null,"body":"Hi,\r\nI am using go1.4 and implemented cache in our application, I am getting(sometimes) this panic message.\r\n\r\ngoroutine 11 [running]:\r\ngithub.com/astaxie/beego/cache.(*MemoryCache).item_expired(0xc20808c7b0, 0x0, 0x2f, 0x0)\r\n        /usr/local/gopath/src/github.com/astaxie/beego/cache/memory.go:225 +0xbc\r\ngithub.com/astaxie/beego/cache.(*MemoryCache).vaccuum(0xc20808c7b0)\r\n        /usr/local/gopath/src/github.com/astaxie/beego/cache/memory.go:216 +0xfc\r\ncreated by github.com/astaxie/beego/cache.(*MemoryCache).StartAndGC\r\n        /usr/local/gopath/src/github.com/astaxie/beego/cache/memory.go:201 +0x399\r\n\r\ngoroutine 1 [chan receive, 205 minutes]:\r\ngithub.com/astaxie/beego.(*App).Run(0xc20800a780)\r\n        /usr/local/gopath/src/github.com/astaxie/beego/app.go:171 +0x363\r\ngithub.com/astaxie/beego.Run(0x0, 0x0, 0x0)\r\n        /usr/local/gopath/src/github.com/astaxie/beego/beego.go:277 +0x17c\r\nmain.main()\r\n        /usr/local/gopath/src/Mediation/main.go:54 +0x5a9\r\n"},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/133032184","html_url":"https://github.com/astaxie/beego/issues/1316#issuecomment-133032184","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1316","id":133032184,"user":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T14:35:41Z","updated_at":"2015-08-20T14:35:41Z","body":"@nirajNijju could you provide your code snippet"}}