• Stars
    star
    10
  • Rank 1,749,869 (Top 36 %)
  • Language
    Julia
  • License
    Other
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Julia memcached client

Julia Memcache Client

Build Status Coverage Status

A pure Julia client for memcached servers. All memcached commands as of memcached version 1.4.17 are implemented.

Both numbers and strings are stored in plain string format so as to be interoperable with other memcached client libraries. Other Julia types are stored in their serialized form.

Type MemcacheClient represents a connection to a single memcached server instance.

Type MemcacheClients wraps over multiple MemcacheClient instances to provide distributed cache across more than one memcached server instances. Operations are routed to appropriate server based on key hash value.

Methods

  • Setting and getting data: set, cas, add, replace, append, prepend, incr, decr, get, touch
  • Administration: stats, version, flush_all, close, slabs_reassign, slabs_automove, quit

All methods are supported for both MemcacheClient and MemcacheClients, but results of administration commands would return and array of responses from all servers. See memcached command documentation for details of administration commands.

Below is an illustration of using the most common commands.

julia> using Memcache

julia> # create a client connection

julia> mc = MemcacheClient("localhost", 11211);

julia> 

julia> # simple set and get

julia> set(mc, "key1", "val1")

julia> set(mc, "key2", 2)

julia> get(mc, "key1")
"val1"

julia> 

julia> # multi get

julia> get(mc, "key1", "key2")
["key1"=>"val1","key2"=>2]

julia> 

julia> # increment, decrement

julia> incr(mc, "key2", 8)
10

julia> decr(mc, "key2", 3)
7

julia> 

julia> # append, prepend

julia> append(mc, "key1", "--")

julia> prepend(mc, "key1", "--")

julia> get(mc, "key1")
"--val1--"

julia> 

julia> # cas

julia> res = get(mc, "key1", cas=true)
["key1"=>("--val1--",40)]

julia> val,casval = res["key1"]
("--val1--",40)

julia> cas(mc, "key1", 2, casval)

julia> get(mc, "key1")
2

TODO

  • compression
  • optimize multi get for MemcacheClients

More Repositories

1

jquery-gdrive

JQuery Plugin for Google Drive API
HTML
44
star
2

gRPC.jl

gRPC framework for Julia
Julia
27
star
3

Thrift.jl

Thrift for Julia
Julia
26
star
4

JuliaDockerImages

Docker images for base Julia and Julia packages
Shell
19
star
5

julia_types

Generate a text graphic of Julia modules type tree.
Julia
15
star
6

OpenIDConnect.jl

OpenID Connect for Julia
Julia
12
star
7

JWTs.jl

JSON Web Tokens (JWT) for Julia
Julia
11
star
8

KubernetesIntegratedJulia

Julia
9
star
9

Word2Vec.jl

Word2Vec in Julia
Julia
9
star
10

FastCGI.jl

Julia FastCGI client and server
Julia
6
star
11

JudyDicts.jl

Judy Array for Julia
Julia
4
star
12

CommonCrawl.jl

Interface to common crawl dataset on Amazon S3
Julia
4
star
13

Circuitscape.jl

Julia implementation of Circuitscape (WIP)
Julia
3
star
14

LSH.jl

Locality Sensitive Hashing in Julia
Julia
3
star
15

Dex.jl

Launch and manage Dex from Julia
Julia
3
star
16

Openresty.jl

Launch and manage openresty from Julia
Julia
3
star
17

FoundationDB.jl

FoundationDB client in Julia
Julia
3
star
18

Juliaset.jl

Generate Julia set images
Julia
2
star
19

DexApiClients.jl

Julia client for coreos dex
Julia
2
star
20

Blobs.jl

Facilitate distributed out of core computation over blobs of data.
Julia
2
star
21

MutableStrings.jl

Mutable string types for Julia
Julia
2
star
22

ScalingJuliaWithK8s

Jupyter Notebook
2
star
23

GoogleCodeSearch.jl

Julia interface to Google Code Search
Julia
1
star
24

OpenAPIClient.jl

OpenAPI helper for Julia, works with openapi-generator
Julia
1
star
25

RemoteMonitor.jl

Lightweight remote monitoring of Julia applications
Jupyter Notebook
1
star
26

JuliaTS.jl

Julia
1
star
27

notebooks

random notebooks for reference and exploration
Jupyter Notebook
1
star
28

pygdrive

Python package to synchronize Google Drive files
Python
1
star
29

ChainedVectors.jl

Few utility types over Julia Vector type
Julia
1
star
30

passphrase

Generate good enough, easy to remember passwords from phrases.
Python
1
star
31

LogRollerCompose.jl

Julia
1
star
32

PublicSuffix.jl

Julia Interface for Public Suffix List
Julia
1
star
33

TalksAndMore

Slides used at JuliaCon
Jupyter Notebook
1
star
34

Stemmers.jl

Interface for text stemmer implementations.
Julia
1
star