H2SharedFileCache

org.eso.ias.utils.pcache.impl.H2NVCache.H2SharedFileCache
case class H2SharedFileCache(folder: String, fileName: String, userName: String, password: String) extends H2NVCache

A cache on file in the local file system that does not delete the DB on exit

It connects to the DB on file if it already exists so the same DB on file can be shared by different apps.

Value parameters

fileName

The name of the H@ file

folder

The folder where the DB files are

password

Password (optional)

userName

User name (optional)

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