Skip navigation
Toggle Sidebar

Project Documentation

Current Status (SpaceMemcached-0.5-Beta)

  • Supported: part of memcached protocol as follows
    • TCP connection
    • ASCII procotol Command (set , get , gets, add , replace , delete , incr , decr, flush_all , version, quit)
  • TODO:
    • UDP connection
    • Binary protocolCommand (stat , verbosity , cas , append , prepend)

How To Start

1. move this directory as C:\GigaSpacesXAP6.0\SpaceMemcached ("C:\GigaSpacesXAP6.0" iswhere your gigaspaces installed)

2. Run "bin/SpacesMemcached.bat -h" to see help infomation:

-h,--help ,help infomation
-l,--listen <address>, your IP or hostname, default is 127.0.0.1
-p,--port <port>, default is 11211
-s,--space <space url>, default is "/./memcachedSpace"
-v,--version, version infomation

If you want to use your running space(assume its url is "jini://localhost/*/mySpaceMap"), you could use follow:

bin/SpacesMemcached.bat -s jini://localhost/*/mySpaceMap

OR, If you want use default space to demo, just run

bin/SpacesMemcached.bat

It's OK.

How To Run the demo.

1. move this directory as C:\GigaSpacesXAP6.0\SpaceMemcached ("C:\GigaSpacesXAP6.0" iswhere your gigaspaces installed)
2. build source code: ant compile
3. run demo space: bin/run_gs.bat
4. run spacememcached: bin/run_SpaceMemcached.bat
5. test the protocols: bin/run_Test.bat
now you could see follow results:

[true]set
[true]get
[true]gets
[true]add
[true]replace
[true]delete
[true]incr
[true]decr
[true]flush_all
{localhost/127.0.0.1:11211=0.5}
Adaptavist Theme Builder Powered by Atlassian Confluence