9951 explained code solutions for 126 technologies


redisGet key length in Redis


echo $(redis-cli DEBUG OBJECT test) | cut -d' ' -f 5ctrl + c
redis-cli

launch Redis CLI interface in interactive mode

test

key name to get length of

DEBUG OBJECT

print internal data for specified key

cut -d' ' -f 5

extract serializedlength key which print specified key length