Groovy Documentation

grails.plugin.springcache
[Groovy] Class CacheKeySpec

java.lang.Object
  spock.lang.Specification
      CacheKeySpec

class CacheKeySpec
extends spock.lang.Specification

Field Summary
 
Fields inherited from class spock.lang.Specification
_
 
Property Summary
static java.lang.Object TARGET_1

static java.lang.Object TARGET_2

 
Constructor Summary
CacheKeySpec()

 
Method Summary
java.lang.Object cache keys are equal when target, method name and arguments are the same()

java.lang.Object cache keys differ based on target, method name and arguments()

 
Methods inherited from class spock.lang.Specification
spock.lang.Specification#old(java.lang.Object), spock.lang.Specification#thrown(java.lang.Class), spock.lang.Specification#thrown(), spock.lang.Specification#notThrown(java.lang.Class), spock.lang.Specification#noExceptionThrown(), spock.lang.Specification#Mock(), spock.lang.Specification#Mock(java.lang.Class), spock.lang.Specification#interaction(groovy.lang.Closure), spock.lang.Specification#wait(), spock.lang.Specification#wait(long), spock.lang.Specification#wait(long, int), spock.lang.Specification#equals(java.lang.Object), spock.lang.Specification#toString(), spock.lang.Specification#hashCode(), spock.lang.Specification#getClass(), spock.lang.Specification#notify(), spock.lang.Specification#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

TARGET_1

static final java.lang.Object TARGET_1


TARGET_2

static final java.lang.Object TARGET_2


 
Constructor Detail

CacheKeySpec

CacheKeySpec()


 
Method Detail

cache keys are equal when target, method name and arguments are the same

@Unroll("cache keys for multiple calls to the same method passing #args are equal")
java.lang.Object cache keys are equal when target, method name and arguments are the same()


cache keys differ based on target, method name and arguments

@Unroll("cache keys for #targetA.#methodA(#argsA) and #targetB.#methodB(#argsB) differ")
java.lang.Object cache keys differ based on target, method name and arguments()


 

Groovy Documentation