{"repo":"tri5m/tutu-cache","free":true,"listed":false,"github":"https://github.com/tri5m/tutu-cache","clone":"git clone https://github.com/tri5m/tutu-cache.git","description":"Tu-cache is a Spring-based caching annotation tool designed for quick integration. It overcomes the limitations of standard annotations such as @Cacheable and @CacheEvict by providing greater flexibility and control.","language":"Java","stars":50,"topics":["annotation-tool","cache","redis","spring-cache","tu-cache","spring-boot","spring-cache-redis"],"license":"MIT","category":"databases-storage","readme_excerpt":"English 中文 tutu-cache is a simple and easy-to-use Spring caching annotation library. Use tutu-cache annotations instead of @Cacheable , @CacheEvict , and similar annotations. 🎉Version Latest version: 1.0.6 For 1.0.4 and earlier, the groupId was co.tunan.tucache . Highlights 1. Supports prefix-based cache invalidation 2. Supports SpEL expressions 3. Supports custom cache services 4. Supports local cache 5. Simple configuration and easy to use 🥳Quick Start 1. Use it in Spring Boot Add the dependency 😊Using TuCache 1. Use TuCache to cache the return value of a Service method 2. Use TuCache to clear cache data 3. @TuCache parameters String key() default \"\" : cache key string, supports SpEL expressions wrapped with #{} . The default value is the method signature. long timeout() default -1 : cache expiration time. The default unit is seconds. -1 means never expire. ( expire was used before 1.0.4.RELEASE ) boolean resetExpire() default false : whether to reset expiration each time the cache is hit. TimeUnit timeUnit() default TimeUnit.SECONDS : time unit for cache expiration. String condition() default \"true\" : additional filtering condition. The value is a SpEL expression written directly, without #{} . Examples: 4. @TuCacheClear parameters String[] key() default {} : exact keys to delete, supports SpEL expressions wrapped with #{} . String[] keys() default {} : cache keys or wildcard patterns to delete, supports SpEL expressions wrapped with #{} . Use for wildcard deletion, for","default_branch":null,"files":null,"tree":[],"storefront":"/r/tri5m","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tri5m/tutu-cache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}