Skip to content

Instantly share code, notes, and snippets.

@sirech
Created May 8, 2022 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirech/9b269bc87cc5ec5e29338ff31860b241 to your computer and use it in GitHub Desktop.
Save sirech/9b269bc87cc5ec5e29338ff31860b241 to your computer and use it in GitHub Desktop.
public interface NavigationRepository extends
AerospikeRepository<CachedNavigation, String> {
}
@Value
@Document(collection = "navigation_CachedNavigationMenu")
public class CachedNavigation implements Cacheable<List<LegacyNavMenuItem>> {
@Id
String id;
List<LegacyNavMenuItem> navigation;
@Override
public List<LegacyNavMenuItem> data() {
return navigation;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment