{"action":"created","issue":{"url":"https://api.github.com/repos/lowlevel-studios/storo/issues/2","repository_url":"https://api.github.com/repos/lowlevel-studios/storo","labels_url":"https://api.github.com/repos/lowlevel-studios/storo/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lowlevel-studios/storo/issues/2/comments","events_url":"https://api.github.com/repos/lowlevel-studios/storo/issues/2/events","html_url":"https://github.com/lowlevel-studios/storo/issues/2","id":170252446,"number":2,"title":"Always getting hasExpired to true","user":{"login":"Dharmendra10","id":795372,"avatar_url":"https://avatars.githubusercontent.com/u/795372?v=3","gravatar_id":"","url":"https://api.github.com/users/Dharmendra10","html_url":"https://github.com/Dharmendra10","followers_url":"https://api.github.com/users/Dharmendra10/followers","following_url":"https://api.github.com/users/Dharmendra10/following{/other_user}","gists_url":"https://api.github.com/users/Dharmendra10/gists{/gist_id}","starred_url":"https://api.github.com/users/Dharmendra10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dharmendra10/subscriptions","organizations_url":"https://api.github.com/users/Dharmendra10/orgs","repos_url":"https://api.github.com/users/Dharmendra10/repos","events_url":"https://api.github.com/users/Dharmendra10/events{/privacy}","received_events_url":"https://api.github.com/users/Dharmendra10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T19:39:11Z","updated_at":"2016-08-10T19:00:37Z","closed_at":null,"body":"I am trying to save entity into cache and after caching I am checking expiry but it always returns true.\r\n\r\nBelow is the entity class which I am trying to cache\r\n```\r\npublic class ProductWiseOptionTypesEntity implements Serializable{\r\n    @SerializedName(\"products\")\r\n    @Expose\r\n    private List<Product> products = new ArrayList<>();\r\n    public List<Product> getProducts() {\r\n        return products;\r\n    }\r\n    public static class Product {\r\n        @SerializedName(\"id\")\r\n        private int id;\r\n        @SerializedName(\"name\")\r\n        private String name;\r\n        @SerializedName(\"option_types\")\r\n        private List<ProductOptionTypeEntity> optionTypes;\r\n    }\r\n}\r\n```\r\nBelow configuration I have used in the application class\r\n```\r\nStoroBuilder.configure(8192)  // maximum size to allocate in bytes\r\n                .setDefaultCacheDirectory(this)\r\n                .initialize();\r\n```\r\n\r\nI am using below method to put object into cache\r\n`Storo.put(\"key\", ProductWiseOptionTypesEntityObject).setExpiry(60*60*1000, TimeUnit.MILLISECONDS).execute();`\r\n\r\nI am using below method to check expiry\r\n`Boolean expired = Storo.hasExpired(\"key\").execute();`"},"comment":{"url":"https://api.github.com/repos/lowlevel-studios/storo/issues/comments/238968961","html_url":"https://github.com/lowlevel-studios/storo/issues/2#issuecomment-238968961","issue_url":"https://api.github.com/repos/lowlevel-studios/storo/issues/2","id":238968961,"user":{"login":"waninkoko","id":76762,"avatar_url":"https://avatars.githubusercontent.com/u/76762?v=3","gravatar_id":"","url":"https://api.github.com/users/waninkoko","html_url":"https://github.com/waninkoko","followers_url":"https://api.github.com/users/waninkoko/followers","following_url":"https://api.github.com/users/waninkoko/following{/other_user}","gists_url":"https://api.github.com/users/waninkoko/gists{/gist_id}","starred_url":"https://api.github.com/users/waninkoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waninkoko/subscriptions","organizations_url":"https://api.github.com/users/waninkoko/orgs","repos_url":"https://api.github.com/users/waninkoko/repos","events_url":"https://api.github.com/users/waninkoko/events{/privacy}","received_events_url":"https://api.github.com/users/waninkoko/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T19:00:37Z","updated_at":"2016-08-10T19:00:37Z","body":"Thanks for opening this issue. This is something that I definitively should look into.\r\n\r\nI'll reply soon with some news."}}
{"actor":{"display_login":"waninkoko"}}