fixed 5126: Persistent ID can't be configured for memcached
Merge pull request #5493. Fix #5126