H2FileCache

org.eso.ias.utils.pcache.impl.H2NVCache.H2FileCache
case class H2FileCache(connectionData: H2FileConnectionData) extends H2NVCache

A cache on file in the local file system. It deletes the DB in the file on exit.

The file will be created in a temporary folder (IAS_TMP or, if not defined the temporary folder as returned by the java.io.tmpdir property)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class H2NVCache
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def shutdown(): Unit

Attributes

Definition Classes

Inherited methods

override def clear(): Unit

Empty the cache

Empty the cache

Attributes

Definition Classes
Inherited from:
H2NVCache
override def del(key: String): Boolean

Remove an object from the cache

Remove an object from the cache

Value parameters

key

The key of the object to remove

Attributes

Returns

True if the object has been removed, False otherwise (for example the object was not in the cache)

Definition Classes
Inherited from:
H2NVCache
override def get(key: String): Option[String]

Get an object from the cache

Get an object from the cache

Value parameters

key

The key of the object

Attributes

Returns

The Object in the cache if it exists, empty otherwise

Definition Classes
Inherited from:
H2NVCache
def isTableCreated(): Boolean

Check if the table already exists in the DB

Check if the table already exists in the DB

Attributes

Returns

true if the table exists, false otherwise

Inherited from:
H2NVCache
override def keySet: Set[String]

Collects all keys of this map in a set

Collects all keys of this map in a set

Attributes

Definition Classes
Inherited from:
H2NVCache
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def put(key: String, value: String): Boolean

Puts/update a value in the cache

Puts/update a value in the cache

Value parameters

key

The unique key to identify the object

value

: The string to store in the cache

Attributes

Returns

true if the object has been stored in the cache, false otherwise

Definition Classes
Inherited from:
H2NVCache
override def size: Int

Attributes

Returns

the number of objects in the cache (both in memory and persisted)

Definition Classes
Inherited from:
H2NVCache

Inherited fields

val dbUrl: String

Attributes

Inherited from:
H2NVCache
val h2FileName: String

The name of the file(s) used by H2

The name of the file(s) used by H2

Attributes

Inherited from:
H2NVCache
val password: String

Attributes

Inherited from:
H2NVCache
val userName: String

Attributes

Inherited from:
H2NVCache