IDataStorageService

Namespace: WellFired.Guacamole.DataStorage

Description

This interface defines a simple key value store.

Properties

string Location { get; set; }

Public Methods

string Read ( string key )
void Write ( string data, string key )
void Delete ( string key )
bool Exists ( string key )

Breakdown

  • string Location { get; set; }

    Description

    Indicate the location of the storage.

  • string Read ( string key )

    Description

    Reads the data that is associated with the given key.

    Parameters

    key
  • void Write ( string data, string key )

    Description

    Writes the passed data an associates it with the given key.

    Parameters

    data
    key
  • void Delete ( string key )

    Description

    Delete the data associated to a given key

    Parameters

    key
  • bool Exists ( string key )

    Description

    Returns true if there is data associated to this key

    Parameters

    key