gomemcache icon indicating copy to clipboard operation
gomemcache copied to clipboard

how use Authentication

Open hktalent opened this issue 2 years ago • 0 comments

https://github.com/memcached/memcached/blob/master/doc/protocol.txt

Authentication
--------------

Optional username/password token authentication (see -Y option). Used by
sending a fake "set" command with any key:

set <key> <flags> <exptime> <bytes>\r\n
username password\r\n

key, flags, and exptime are ignored for authentication. Bytes is the length
of the username/password payload.

- "STORED\r\n" indicates success. After this point any command should work
  normally.

- "CLIENT_ERROR [message]\r\n" will be returned if authentication fails for
  any reason.

hktalent avatar Aug 27 '22 02:08 hktalent