Storage

ammonite.runtime.Storage
See theStorage companion object
trait Storage

Trait for the interface of common persistent storage. This handles history and persistent caches. Right now it is not threadsafe nor does it handle the mutual exclusion of files between processes. Mutexes should be added to be able to run multiple Ammonite processes on the same system.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Folder
class InMemory

Members list

Value members

Abstract methods

def classFilesListLoad(filePathPrefix: SubPath, tag: Tag): Option[ScriptOutput]
def classFilesListSave(filePathPrefix: SubPath, perBlockMetadata: Seq[BlockMetadata], tag: Tag): Unit
def compileCacheLoad(path: String, tag: Tag): Option[CompileCache]
def compileCacheSave(path: String, tag: Tag, data: CompileCache): Unit
def getSessionId: Long
def loadPredef: Option[(String, Path)]

Concrete methods

def dirOpt: Option[Path]

Abstract fields

val fullHistory: StableRef[History]
val ivyCache: StableRef[IvyMap]