vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function redisStrip

Strips all non-Redis fields from a struct.

RedisStripped!(T,strip_id) redisStrip(bool strip_id = true, T) (
  in T val
);

The returned struct will contain only fiels that can be converted using toRedis and that have names different than "id" or "id".

To reconstruct the full struct type, use the RedisStripped.unstrip method.

Authors

Sönke Ludwig

Copyright

© 2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.