microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.78k stars 5.37k forks source link

Not able to use redis-cli with pipe mode on windows #541

Open narendrarana opened 7 years ago

narendrarana commented 7 years ago

This works from the command line c:\redis> redis-cli SET 6f35d12de87c4531a728c74100cc7284 {userId:"6f35d12de87c4531a728c74100cc7284",recommendedAction:"SendAJoke",lookupCount:"12",isActive:"TRUE",Description:"Description1",DateAdded:"2017-03-01"} but this does not c:\redis> type u.txt | redis-cli --pipe where u.txt contains the exact SET command used above.

Error : All data transferred. Waiting for the last reply... ERR Protocol error: unbalanced quotes in request I have double checked there are no unbalanced quotes in the file ... Without this I am not sure I will be able to pre-load my redis instance with the data my service needs.