Public | Automated Build

Last pushed: 5 months ago
Short Description
Kronos is an in-memory cache system, based on .NET Core. Client library is available in Nuget.
Full Description


Kronos is distributed, in-memory cache system based on .NET Core. Client library is available by Nuget.

Build status

Windows Linux Code coverage

Docker Image

Kronos.Client - Installation

$ Install-Package Kronos.Client

Kronos.Client - Configuration file

Kronos client requires a cluster configuration file in JSON format. Example file is assigned to the package:

    "ClusterConfig": {
        "Servers": [
                "Ip": "",
                "Port": 5000
                "Ip": "",
                "Port": 5001
                "Ip": "",
                "Port": 5002

Kronos.Client - Usage

// initialize client
string configPath = "KronosConfig.json";
IKronosClient client = KronosClientFactory.CreateClient(configPath);

/// create a key, package and expiry date
string key = "key";
byte[] packageToCache = Encoding.UTF8.GetBytes("Lorem ipsum");
DateTime expiryDate = DateTime.Now;

// insert package to server
await client.InsertAsync(key, packageToCache, expiryDate);

// get package from server
byte[] cachedValues = await client.GetAsync(key);

// Optionally you can delete object from cache using Delete command
await client.DeleteAsync(key);

Server initialization using docker image

To start server using docker, login as a sudo and type:

docker run -td -p 5000:5000 lukaszpyrzyk/kronos 5000
docker run -td -p 5001:5001 lukaszpyrzyk/kronos 5001
docker run -td -p 5002:5002 lukaszpyrzyk/kronos 5002


  • t - allocate a pseudo-tty
  • d - start a container in detached mode
  • p - assign public port 5000 to internal 5000
  • lukaszpyrzyk/kronos - name of the image,
  • 5000 - number of internal port, value passed to the Kronos

Full documentation is available on the docker reference page

Cluster initialization using docker-compose

Create a docker-compose.yml file with cluster configuration:

  image: lukaszpyrzyk/kronos
  command: "5000"
    - 5000:5000

  image: lukaszpyrzyk/kronos
  command: "5001"
    - 5001:5001

  image: lukaszpyrzyk/kronos
  command: "5002"
    - 5002:5002

Save the file and run command:

docker-compose up -d


  • d - start a containers in detached mode

This command will create and start three Kronos Severs.

Building own docker image

If you don't want to use my docker image, you can build your own. Clone repository and type:

docker build -t kronos .


I am a student of Opole University Of technology and this is my Engineering Thesis.



Docker Pull Command
Source Repository