Supported protocols and operations

更新时间:
复制 MD 格式

You can access ApsaraDB for Memcache using any client compatible with the Memcached protocol. Select a client that supports the Memcached binary protocol and the SASL authentication protocol.

Protocols

  • Memcached binary protocol

  • SASL authentication protocol

Operations

ApsaraDB for Memcache supports the following commands.

Opcode

Command

Description

0x00

Get

0x01

Set

0x02

Add

0x03

Replace

0x04

Delete

0x05

Increment

0x06

Decrement

0x07

Quit

0x08

Flush

The expiration parameter is not supported. This command immediately clears all cached data.

0x09

GetQ

0x0a

No-op

0x0b

Version

0x0c

GetK

0x0d

GetKQ

0x0e

Append

0x0f

Prepend

0x10

Stat

Not supported.

0x11

SetQ

0x12

AddQ

0x13

ReplaceQ

0x14

DeleteQ

0x15

IncrementQ

0x16

DecrementQ

0x17

QuitQ

0x18

FlushQ

The expiration parameter is not supported. This command immediately clears all cached data.

0x19

AppendQ

0x1a

PrependQ

0x1b

Verbosity

Not supported.

0x1c

Touch

0x1d

GAT

0x1e

GATQ

0x20

SASL list mechs

0x21

SASL Auth

0x22

SASL Step

Text protocol commands

  • get

  • gets

  • set

  • add

  • replace

  • append

  • prepend

  • cas

  • delete

  • quit

  • incr

  • decr

  • touch

  • flush_all

  • version