Revisions
-
galderz revised this gist
Oct 27, 2011 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,14 +7,14 @@ class MyDAO { @CacheResult(cacheName = "user-cache") User getUser(long id) {...}; @CachePut(cacheName = "user-cache") void storeUser(long id, @CacheValue User user) {...}; @CacheRemoveEntry(cacheName = "user-cache") void removeUser(long id) {...}; @CacheRemoveAll(cacheName = "user-cache") void removeAllUser() {...}; } -
galderz revised this gist
Oct 27, 2011 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,15 +6,15 @@ import javax.cache.interceptor.CacheRemoveAll; class MyDAO { @CacheResult(cacheName = "user-cache") User getUser(long id){...}; @CachePut(cacheName = "user-cache") void storeUser(long id, @CacheValue User user){...}; @CacheRemoveEntry(cacheName = "user-cache") void removeUser(long id){...}; @CacheRemoveAll(cacheName = "user-cache") void removeAllUser(){...}; } -
maniksurtani created this gist
Sep 21, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ ... import javax.cache.interceptor.CacheResult; import javax.cache.interceptor.CachePut; import javax.cache.interceptor.CacheValue; import javax.cache.interceptor.CacheRemoveEntry; import javax.cache.interceptor.CacheRemoveAll; class MyDAO { @CacheResult(cacheName="user-cache") User getUser(long id){...}; @CachePut(cacheName="user-cache") void storeUser(long id, @CacheValue User user){...}; @CacheRemoveEntry(cacheName="user-cache") void removeUser(long id){...}; @CacheRemoveAll(cacheName="user-cache") void removeAllUser(){...}; }