org.springframework.cache.annotation

Annotation Type Caching



  • @Target(value={METHOD,TYPE})
     @Retention(value=RUNTIME)
     @Inherited
     @Documented
    public @interface Caching
    Group annotation for multiple cache annotations (of different or the same type).

    This annotation may be used as a meta-annotation to create custom composed annotations with attribute overrides.

    Since:
    3.1
    Author:
    Costin Leau, Chris Beams
    • Element Detail

      • cacheable

        public abstract Cacheable[] cacheable
        Default:
        {}
      • put

        public abstract CachePut[] put
        Default:
        {}
      • evict

        public abstract CacheEvict[] evict
        Default:
        {}