This project has retired. For details please refer to its Attic page.
Redis EntityStore Starter Template for Bootstrap
Overview
javax.json serialization
javax.xml serialization
MessagePack serialization
Memory EntityStore
File EntityStore
Geode EntityStore
Hazelcast EntityStore
JClouds EntityStore
JDBM EntityStore
LevelDB EntityStore
MongoDB EntityStore
Preferences EntityStore
Redis EntityStore
Riak EntityStore
SQL EntityStore
Ehcache Cache
Memcache Cache
ElasticSearch Index/Query
OpenRDF Index/Query
Apache Solr Index/Query
SQL Index/Query
Codahale Metrics
Migration
Reindexer

Redis EntityStore

code

docs

tests

EntityStore service backed by a Redis database.

Table 60. Artifact

Group IDArtifact IDVersion

org.apache.polygene.extensions

org.apache.polygene.extension.entitystore-redis

0


Assembly

Assembly is done using the provided Assembler.

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

    new RedisEntityStoreAssembler().withConfig( config, Visibility.layer ).assemble( module );
      [...snip...]

}

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();

}