SherLockOD / DCacheClient

Client Tools for the DCache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DCache Client Tools

Config

Set config for the connecting DCache

Registry

  • property : set tars registry address
    eg: tars.tarsregistry.QueryObj@tcp -h ip_addr -p 17890

KVCache

  • ModuleName : set module name of the KVCache App
    eg: DCacheApp_test

  • CacheObj : set Cache object name of the App
    eg: DCache.DCacheApp_testKVCacheServer1-1.CacheObj

  • WCacheObj : set WCache object name of the App
    eg: DCache.DCacheApp_testKVCacheServer1-1.WCacheObj

Build

  • build

    bash build.sh build

  • clear

    bash build.sh clear

Quick Start

Help

  • help
./DCache-Cli help

Read

  • get
./DCache-Cli get key
  • gets
./DCache-Cli gets key1 key2 key3 ...
  • getkeys
./DCache-Cli getkeys
  • check
./DCache-Cli check key1 key2 key3 ...

Write

  • set
./DCache-Cli set key value
  • sets
./DCache-Cli sets key1:value1 key2:value2 key3:value3 ...
  • insert
./DCache-Cli insert key value
  • del
./DCache-Cli del key
  • dels
./DCache-Cli dels key1 key2 key3

Directory description

Directory Description
conf Configuration file of the DCache
model Function models of the Client Tools
pkg Proxy package of the DCache
test Benchmark of the DCache

demo.go is a demo script for the DCache Client

About

Client Tools for the DCache

License:Apache License 2.0


Languages

Language:Go 99.9%Language:Shell 0.1%