Class CacheAwareness

  • All Implemented Interfaces:
    dev.otbe.gitlab.ci.dsl.cache.CacheAware

    
    public final class CacheAwareness
     implements CacheAware
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheAwareness()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit cache(List<Cache> caches) Adds a list of tags to the job.
      Unit cache(Cache cache) Sets a new cache section.
      Unit cache(Function1<CacheBuilder, Unit> init) Configures a new cache section via its builder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheAwareness

        CacheAwareness()
    • Method Detail

      • cache

         Unit cache(List<Cache> caches)

        Adds a list of tags to the job.

      • cache

         Unit cache(Cache cache)

        Sets a new cache section. Can also be used to reset it when null is passed.