Skip to content

Latest commit

 

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Introduction

This package describes the Aerospike Go Client API in detail.

Usage

The aerospike Go client package is the main entry point to the client API.

    import as "github.com/aerospike/aerospike-client-go"

Before connecting to a cluster, you must import the package.

You can then generate a client object for connecting to and operating against as cluster.

  client, err := as.NewClient("127.0.0.1", 3000)

The application will use the client object to connect to a cluster, then perform operations such as writing and reading records. Client object is goroutine frinedly, so you can use it in goroutines without synchronization. It caches its connections and internal state automatically for optimal performance. These settings can also be changed.

For more details on client operations, see Client Class.

API Reference