Project Polygene has retired. For details please refer to its Attic page.
Redis EntityStore
Zest™
Introduction
Tutorials
Javadoc
Samples
Core
Libraries
Extensions
Tools
Glossary 

Redis EntityStore

code

docs

tests

EntityStore service backed by a Redis database.

Table 68. Artifact

Group IDArtifact IDVersion

org.qi4j.extension

org.qi4j.extension.entitystore-redis

2.1


Assembly

Assembly is done using the provided Assembler.

public void assemble( ModuleAssembly module )
    throws AssemblyException
{
  [...snip...]

    new RedisMapEntityStoreAssembler().withConfig( config, Visibility.layer ).assemble( module );
}

Configuration

Here are the configuration properties for the Redis client:

public interface RedisEntityStoreConfiguration
        extends ConfigurationComposite
{

    /**
     * Redis host.
     *
     * Defaulted to 127.0.0.1.
     */
    @Optional
    Property<String> host();

    /**
     * Redis port.
     *
     * Defaulted to 6379.
     */
    @Optional
    Property<Integer> port();

    /**
     * Connection timeout in milliseconds.
     *
     * Defaulted to 2000.
     */
    @Optional
    Property<Integer> timeout();

    /**
     * Redis password.
     */
    @Optional
    Property<String> password();

    /**
     * Redis database.
     *
     * Defaulted to 0.
     */
    @Optional
    Property<Integer> database();

}