Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FranRiadigos/RepositoryCache
/ functions
Functions
77 in github.com/FranRiadigos/RepositoryCache
⨍
Functions
77
◇
Types & classes
19
↓ 12 callers
Method
hashMD5
(String str)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:43
↓ 6 callers
Method
getCacheDir
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:36
↓ 6 callers
Method
getFileName
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:40
↓ 5 callers
Method
buildFile
Builds the cached file method into the disk cache. @param file The Context File @param fileName The string to store the cache method @param type
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:209
↓ 5 callers
Method
exists
Returns a boolean indicating whether this file can be found on the underlying file system. @param file The file to check existence. @return true if t
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:118
↓ 3 callers
Method
addError
(String msg, Object... args)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:111
↓ 3 callers
Method
contains
Returns boolean indicating whether this file contains the content value. @param file The file to check existence. @param fileContent The content valu
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:129
↓ 3 callers
Method
getAllDataOnce
Calls on this method will be cached indefinitely, unless you evict it later. @return any retrieved data
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepository.java:30
↓ 3 callers
Method
getAnnotation
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:67
↓ 3 callers
Method
getDataById
Calls on this method with a specific id will be cached until 30 minutes each one, then expires. @param id any Id @return any retrieved data
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepository.java:40
↓ 3 callers
Method
getQualifiedMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:46
↓ 3 callers
Method
joinItems
(String... pieces)
repository-cache-compiler/src/test/java/com/kuassivi/compiler/ProxyCodeTestGenerator.java:108
↓ 2 callers
Method
add
Adds the annotated method into the methods Map @param methodToInsert Method annotated @throws ProcessingException Method already exist, please use th
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:103
↓ 2 callers
Method
error
Prints an Error message @param e The element which has caused the error. Can be null @param message The error message
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:65
↓ 2 callers
Method
getElement
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:71
↓ 2 callers
Method
getExecutableType
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:75
↓ 2 callers
Method
isCached
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:42
↓ 2 callers
Method
isExpired
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:44
↓ 2 callers
Method
persist
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:26
↓ 2 callers
Method
readFileContent
Reads a content from a file. This is an I/O operation and this method executes in the main thread, so it is recommended to perform the operation using
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:62
↓ 1 callers
Method
addProxyMethods
(TypeSpec.Builder classBuilder)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:209
↓ 1 callers
Method
clearFile
Warning: Deletes the File or the content of a directory. This is an I/O operation and this method executes in the main thread, so it is recommended to
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:144
↓ 1 callers
Method
errors
Prints multiple Error messages @param e The element which has caused the error. Can be null @param messages The error messages
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:75
↓ 1 callers
Method
evict
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param proxyCache the ProxyCache object
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:125
↓ 1 callers
Method
generateCode
Generates the proxy cache java file @param filer Filer @throws IOException Generator file exception
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:133
↓ 1 callers
Method
getCacheTime
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:38
↓ 1 callers
Method
getErrors
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:115
↓ 1 callers
Method
getFullMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:58
↓ 1 callers
Method
getInstance
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:37
↓ 1 callers
Method
getLastModifiedTime
Returns the last modified time of a {@link File} @param file The file to check last modified time. @return long value for the time
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:96
↓ 1 callers
Method
getQualifiedClassName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:54
↓ 1 callers
Method
getSimpleMethodName
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:42
↓ 1 callers
Method
initialize
(ProcessingEnvironment env)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:35
↓ 1 callers
Method
isAccessible
Checks whether is an accessible {@link ElementType}. Accessible means: public, default or native. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:62
↓ 1 callers
Method
isCached
Checks whether the method is cached. @param proxyCache the ProxyCache object @return true if is cached, false otherwise
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:148
↓ 1 callers
Method
isInterfaceAllowed
Checks whether is not an abstract {@link ElementType}. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:96
↓ 1 callers
Method
note
Prints a Note message @param message The message Note
repository-cache-compiler/src/main/java/com/kuassivi/compiler/Utils.java:45
↓ 1 callers
Method
select
(Object cacheKey)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:32
↓ 1 callers
Method
with
(Element annotatedElement, Class<?> clazz)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:49
↓ 1 callers
Method
writeToFile
Writes a file to Disk. This is an I/O operation and this method executes in the main thread, so it is recommended to perform this operation using anot
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:40
Method
AnnotatedMethod
(Element element)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotatedMethod.java:36
Method
AnnotationValidator
(Element annotatedElement, Class<?> clazz)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:42
Method
ApplicationTest
()
examples/src/androidTest/java/com/kuassivi/examples/repository_cache/ApplicationTest.java:11
Method
CacheClear
(FileManager fileManager, File fileToClear)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:252
Method
CacheWriter
(FileManager fileManager, File fileToWrite, String fileContent)
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:229
Method
FileManager
()
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:31
Method
MyRepositoryImpl
Initialize dependencies @param context The application Context
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:48
Method
ProcessingException
(Element element, String msg, Object... args)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProcessingException.java:28
Method
ProxyClassGenerator
Supply the Qualified ClassName for the Proxy @param elementUtils Element utils object @param qualifiedClassName ClassName of the Annotated Class
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProxyClassGenerator.java:85
Method
RepositoryCacheManager
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:33
Method
addition_isCorrect
()
examples/src/test/java/com/kuassivi/examples/repositorycache/ExampleUnitTest.java:12
Method
evict
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:30
Method
evictAll
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param directory the File directory to clear on dis
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:138
Method
generatedProxyWith1EmptyMethod_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:21
Method
generatedProxyWith2MethodsWithSameName_fail
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:88
Method
generatedProxyWith2Methods_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:52
Method
generatedProxyWith8Methods_isCorrect
()
repository-cache-compiler/src/test/java/com/kuassivi/compiler/RepositoryCacheTest.java:112
Method
getAllDataOnce
Demonstrates how to distinguish between local or cloud data source with the cache strategy. You can store a cache indefinitely if you don't provide an
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:63
Method
getAllDataOnce
()
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyCloudData.java:24
Method
getAllDataOnce
()
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyLocalData.java:24
Method
getContent
Warning: This is an I/O operation and this method must to be performed in a different Thread. @param proxyCache the ProxyCache object @return A valid
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:194
Method
getContent
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryProxyCache.java:34
Method
getDataById
Demonstrates how to distinguish between local or cloud data source with the cache strategy. The RepositoryCache allows you to store different caches d
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyRepositoryImpl.java:109
Method
getDataById
(int id)
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyCloudData.java:29
Method
getDataById
(int id)
examples/src/main/java/com/kuassivi/examples/repository_cache/dummy/MyLocalData.java:29
Method
getElement
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/ProcessingException.java:33
Method
getSupportedAnnotationTypes
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:60
Method
getSupportedSourceVersion
()
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:65
Method
hashCode
Returns a hash code based on the contents of the given array. If the array contains other arrays as its elements, the hash code is based on their iden
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:77
Method
init
(ProcessingEnvironment processingEnv)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:51
Method
isAbstractAllowed
Checks whether is an abstract {@link ElementType}. @return AnnotationValidator
repository-cache-compiler/src/main/java/com/kuassivi/compiler/AnnotationValidator.java:77
Method
isExpired
Warning: This is an I/O operation and this method must to be performed in a different Thread. @param proxyCache the ProxyCache object @return true if
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:166
Method
persist
Warning: This is an I/O operation and this method is going to be performed in a different Thread. @param proxyCache the ProxyCache object
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:101
Method
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
repository-cache-compiler/src/main/java/com/kuassivi/compiler/RepositoryCacheProcessor.java:70
Method
run
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:235
Method
run
()
repository-cache/src/main/java/com/kuassivi/annotation/RepositoryCacheManager.java:257
Method
setLastModifiedTime
Updates the last modified time of a {@link File} @param file The file to update its last modified time. @param time The time to update in the file. @
repository-cache/src/main/java/com/kuassivi/annotation/FileManager.java:108