write-resp ( value -- ) - Factor Documentation

write-resp ( value -- )


Vocabulary
redis .command-writer .private

Inputs
value an object


Outputs
None

Definition
IN: redis.command-writer.private

GENERIC: write-resp ( value -- )


Methods
USING: formatting math redis.command-writer.private ;

M: integer write-resp ":%s\r\n" printf ;


USING: formatting kernel redis.command-writer.private sequences
;

M: sequence write-resp
[ length "*%s\r\n" printf ] keep [ write-resp ] each ;


USING: formatting kernel redis.command-writer.private sequences
strings ;

M: string write-resp [ length ] keep "$%s\r\n%s\r\n" printf ;

AltStyle によって変換されたページ (->オリジナル) /