api aligned with embedded-redis