object Cache
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Cache
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
DefaultExpiry: Int
Default cache expiry time in seconds
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clearKey(cacheKey: String): Unit
Removes key from the cache.
Removes key from the cache.
- cacheKey
the key to remove
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getOrFetch(cacheKey: String, fn: ⇒ Future[Seq[Submission]], expiry: Long = DefaultExpiry): Future[Json]
Returns a value from the cache if it exists, otherwise creates it as such and returns it.
Returns a value from the cache if it exists, otherwise creates it as such and returns it.
Returns the associated value for a given cacheKey if it exists, otherwise returns the value created via the private createAndSet method.
- cacheKey
the key to look up
- fn
the function to run if no value was found
- expiry
how long to keep values for in seconds if setting a key
- returns
a Future[argonaut.Json] containing the value that would be returned by the given fn if run itself
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
redis: RedisClient
Redis client to be used by all methods
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )