kv_close_store()

#include <kvstore.h>

kv_error_t 
kv_close_store(kv_store_t *store) 

Closes the store handle, releasing all resources that the handle was using. If authentication was performed for this store handle (that is, if kv_open_store_login() was used), then this API logs out the client before releasing the handle's resources. After calling this function, never use the handle again, even if an error is returned from this function.

You open store handles using kv_open_store() or kv_open_store_login().

Parameters

  • store

    The store parameter is the store handle you want to close.