这是indexloc提供的服务,不要输入任何密码
Skip to content

Memcached: update deletes all fields except the one updated  #1358

@rizlik

Description

@rizlik

The update routine in MemcachedClient replaces the full object with just the updated field

memcachedClient().replace(key, objectExpirationTime, toJson(values));

this script shows the issue.
memcached_test.sh.txt

This is a limit of storing the object as a big json blob and I don't see an easy solution.

One way to warn the users can be supporting update only when writeallfields is true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions