 doubleWriter: Writer[Double] = DoubleWriter
</code></pre>
<p>Therefore, when writing <code>import scredis._</code>, all of them are imported into the scope and any base type can be serialized.</p>
<p>Additionally, scredis provides an <code>AnyWriter</code> class which can serialize any type by first calling the <code>toString</code> method on it. It is not imported by default as it would interfere with user defined custom <code>Writer</code> objects. You can import it to serialize a collection containing m