ignite-go-client

9

Описание

Тонкий клиент на языке Golang для Apache Ignite и Platform V DataGrid

Языки

  • Go97,5%
  • Java1,2%
  • Shell0,8%
  • Makefile0,3%
  • Dockerfile0,2%
README.md

ignite-go client

Go thin client for Apache Ignite

Requirements

  • Go 1.19 or higher.

Installation

Usage

Basic usage of the apache ignite go driver starts with creating

Client
using function
Start

This will create a new ignite client to the ignite cluster on localhost. It is possible to pass multiple

ClientConfigurationOption
parameters to method Start that specify various client options.

Cache creation

Cache can be created or obtained with help of these methods:

  • Client.GetOrCreateCache
    gets/creates cache by name.
  • Client.CreateCache
    creates cache by name.
  • Client.GetOrCreateCacheWithConfiguration
    gets/creates cache by
    CacheConfiguration
    .
  • Client.CreateCacheWithConfiguration
    creates cache by
    CacheConfiguration
    . A list of already created caches can be obtained using
    Client.CacheNames
    . A cache can be destroyed with
    Client.DestroyCache
    .

Cache operations

Here is a basic usage scenario of

Cache
:

You can see other operations in

Cache
documentation. Currently only limited types are supported: numerical types, string, uuid, bytes slices. Other types and BinaryObject will be added in later releases.

TTL (ExpiryPolicy) support

You can set ExpiryPolicy to entries by creating special decorator by

Cache.WithExpiryPolicy
.