Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 403 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 403 Bytes

Cache-strategy

A library for applying the strategy of caching the computed values of a method using aspect annotation.

Getting Started

Examples

@CacheStrategy(cacheName = "cachename2")
public Map<String, Long> getUserUids(String entityId, @CacheKey List<String> userIds) {
    return userIds.stream().collect(Collectors.toMap(Function.identity(), userId -> System.nanoTime()));
}