Updated on 2024-06-20 GMT+08:00

How Do I Migrate Memcached Data?

Memcached does not provide commands for traversal data query. Therefore, you cannot directly export data from your Memcached and migrate the data to a DCS Memcached instance.

Record cache keys through logging of your application systems, extract key-value data, and write the data to a DCS Memcached instance, achieving gradual data migration.

By using some open-source tools, you can run the stats cachedump command of Memcached and perform get operations to query partial key-value data stored in your Memcached. However, you can only query key data not greater than 2 MB (including the size of all keys queried and additional information with a size of more than 20 bytes for each key) by using this command. Therefore, you cannot use such tools or similar methods for data migration.