{"id":22290250,"url":"https://github.com/vbekiaris/jcache-demo","last_synced_at":"2025-03-25T21:26:08.707Z","repository":{"id":205275498,"uuid":"112461883","full_name":"vbekiaris/jcache-demo","owner":"vbekiaris","description":"Sample code for a JCache presentation at JHUG meetup.","archived":false,"fork":false,"pushed_at":"2017-11-29T10:36:54.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T18:48:37.295Z","etag":null,"topics":["jcache","jsr-107"],"latest_commit_sha":null,"homepage":"https://www.meetup.com/Java-Hellenic-User-Group/events/244787630/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbekiaris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-29T10:34:51.000Z","updated_at":"2021-02-26T08:41:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"493b2fbb-7277-4012-92a1-67fd5b8d1851","html_url":"https://github.com/vbekiaris/jcache-demo","commit_stats":null,"previous_names":["vbekiaris/jcache-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbekiaris%2Fjcache-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbekiaris%2Fjcache-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbekiaris%2Fjcache-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbekiaris%2Fjcache-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbekiaris","download_url":"https://codeload.github.com/vbekiaris/jcache-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245545242,"owners_count":20632964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jcache","jsr-107"],"created_at":"2024-12-03T17:12:15.186Z","updated_at":"2025-03-25T21:26:08.670Z","avatar_url":"https://github.com/vbekiaris.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"**JCache samples**\n\nSample code for a JCache presentation at [JHUG meetup](https://www.meetup.com/Java-Hellenic-User-Group/events/244787630/).\n\n* `HelloWorldTest`: start here\n* `EntryProcessorTest`: demonstrates atomic execution of `EntryProcessor`\n* `HelloWorldApp` and `HelloWorldAppTest`: `HelloWorldApp` demonstrates how to implement cache-aside and cache-through caching of a `SlowService`. It is a web application built on the JDK's embedded web server.\n  - `HelloWorldHandler`  does not cache.\n  - `CacheAsideHandler` implements the cache-aside pattern: queries the cache for cached results, then if none found, requests the result from `SlowService` and puts the retrieved result in its cache.\n  - `CacheThroughHandler` implements the cache-through pattern: all requests are served from the `Cache` which is now configured with a `CacheLoader`.\n  \n  \n**Building and running**\n\nThe samples have been tested with Java 8 and maven 3.5.0. While building, skip tests as some are intentionally failing.\n\n```bash\nmvn -DskipTests clean package\n```\n\nYou may execute each test individually, for example:\n\n```bash\nmvn -Dtest=HelloWorldTest test\n```\n\n**JSR-107 resources**\n\n* JSR page on JCP: https://www.jcp.org/en/jsr/detail?id=107\n* Source code and issue tracking: https://github.com/jsr107/\n* Discussion forum: https://groups.google.com/forum/?fromgroups=#!forum/jsr107\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbekiaris%2Fjcache-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbekiaris%2Fjcache-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbekiaris%2Fjcache-demo/lists"}