Commit Graph

61 Commits

Author SHA1 Message Date
Oliver Gierke
17fc8fa7a0 DATAREDIS-669 - After release cleanups. 2017-07-27 00:21:40 +02:00
Oliver Gierke
3c05d4a191 DATAREDIS-669 - Prepare next development iteration. 2017-07-27 00:15:08 +02:00
Oliver Gierke
5c0aae568f DATAREDIS-669 - Release version 1.8.6 (Ingalls SR6). 2017-07-26 23:47:20 +02:00
Oliver Gierke
f376ab239b DATAREDIS-669 - Prepare 1.8.6 (Ingalls SR6). 2017-07-26 23:45:53 +02:00
Oliver Gierke
be371420d5 DATAREDIS-653 - After release cleanups. 2017-07-24 19:25:08 +02:00
Oliver Gierke
c0c7be12ae DATAREDIS-653 - Prepare next development iteration. 2017-07-24 19:25:06 +02:00
Oliver Gierke
3c750b09b2 DATAREDIS-653 - Release version 1.8.5 (Ingalls SR5). 2017-07-24 18:44:19 +02:00
Oliver Gierke
9df4f77b92 DATAREDIS-653 - Prepare 1.8.5 (Ingalls SR5). 2017-07-24 18:43:24 +02:00
Mark Paluch
4dee6cba2b DATAREDIS-631 - After release cleanups. 2017-06-08 11:26:20 +02:00
Mark Paluch
b554ca6d5e DATAREDIS-631 - Prepare next development iteration. 2017-06-08 11:26:19 +02:00
Mark Paluch
821db45fe9 DATAREDIS-631 - Release version 1.8.4 (Ingalls SR4). 2017-06-08 10:56:52 +02:00
Mark Paluch
0cf6be9649 DATAREDIS-631 - Prepare 1.8.4 (Ingalls SR4). 2017-06-08 10:56:03 +02:00
Oliver Gierke
2af785cb67 DATAREDIS-627 - After release cleanups. 2017-04-19 20:01:15 +02:00
Oliver Gierke
2bb083f249 DATAREDIS-627 - Prepare next development iteration. 2017-04-19 20:01:13 +02:00
Oliver Gierke
e983776cf7 DATAREDIS-627 - Release version 1.8.3 (Ingalls SR3). 2017-04-19 19:32:39 +02:00
Oliver Gierke
a628e9fddd DATAREDIS-627 - Prepare 1.8.3 (Ingalls SR3). 2017-04-19 19:32:02 +02:00
Oliver Gierke
a5089b4186 DATAREDIS-607 - After release cleanups. 2017-04-19 11:48:46 +02:00
Oliver Gierke
733f8e4482 DATAREDIS-607 - Prepare next development iteration. 2017-04-19 11:48:43 +02:00
Oliver Gierke
3f4483d0c1 DATAREDIS-607 - Release version 1.8.2 (Ingalls SR2). 2017-04-19 10:11:29 +02:00
Oliver Gierke
cbf575fc87 DATAREDIS-607 - Prepare 1.8.2 (Ingalls SR2). 2017-04-19 10:10:48 +02:00
Oliver Gierke
03b2da800a DATAREDIS-598 - After release cleanups. 2017-03-02 10:21:57 +01:00
Oliver Gierke
79964c558e DATAREDIS-598 - Prepare next development iteration. 2017-03-02 10:21:39 +01:00
Oliver Gierke
1c28381cc7 DATAREDIS-598 - Release version 1.8.1 (Ingalls SR1). 2017-03-02 09:41:29 +01:00
Oliver Gierke
1d3eba4555 DATAREDIS-598 - Prepare 1.8.1 (Ingalls SR1). 2017-03-02 09:33:29 +01:00
Oliver Gierke
6972e12824 DATAREDIS-587 - After release cleanups. 2017-01-26 10:57:48 +01:00
Oliver Gierke
9b6a45822a DATAREDIS-587 - Prepare next development iteration. 2017-01-26 10:57:45 +01:00
Oliver Gierke
76991fb12c DATAREDIS-587 - Release version 1.8 GA (Ingalls). 2017-01-26 10:27:10 +01:00
Oliver Gierke
abee0748c8 DATAREDIS-587 - Prepare 1.8 GA (Ingalls). 2017-01-26 10:26:35 +01:00
Oliver Gierke
20010d1c16 DATAREDIS-541 - After release cleanups. 2016-12-21 16:33:13 +01:00
Oliver Gierke
abd1748867 DATAREDIS-541 - Prepare next development iteration. 2016-12-21 16:33:11 +01:00
Oliver Gierke
a8c146b3b7 DATAREDIS-541 - Release version 1.8 RC1 (Ingalls). 2016-12-21 16:16:51 +01:00
Oliver Gierke
70e0fcb413 DATAREDIS-541 - Prepare 1.8 RC1 (Ingalls). 2016-12-21 16:15:48 +01:00
Christoph Strobl
4be4ed0b28 DATAREDIS-528 - Upgrade to Lettuce 4.2.2.
We now support Lettuce 4.2.2.Final. Using Lettuce requires Java 8.

Original pull request: #222.
2016-10-12 15:45:38 +02:00
Oliver Gierke
a6ad1a516a DATAREDIS-487 - After release cleanups. 2016-07-27 14:32:38 +02:00
Oliver Gierke
2c1c872122 DATAREDIS-487 - Prepare next development iteration. 2016-07-27 14:32:36 +02:00
Oliver Gierke
e661201272 DATAREDIS-487 - Release version 1.8 M1 (Ingalls). 2016-07-27 13:52:13 +02:00
Oliver Gierke
316097ce06 DATAREDIS-487 - Prepare 1.8 M1 (Ingalls). 2016-07-27 13:51:38 +02:00
Mark Paluch
1a332c0f57 DATAREDIS-506 - Upgrade to Jedis 2.9.0.
We now support Jedis 2.9.0 with Redis Standalone SSL and Redis Cluster with passwords. The code is compatible with Jedis 2.8.0 when not using SSL or Redis Cluster with passwords.

Original Pull Request: #211
2016-07-26 15:48:03 +02:00
Oliver Gierke
f11bc83e46 DATAREDIS-484 - After release cleanups. 2016-04-06 16:37:03 +02:00
Oliver Gierke
6e5df14794 DATAREDIS-484 - Prepare next development iteration. 2016-04-06 16:37:00 +02:00
Oliver Gierke
59b6b93abc DATAREDIS-484 - Release version 1.7 GA (Hopper). 2016-04-06 16:35:59 +02:00
Oliver Gierke
96358c430d DATAREDIS-484 - Prepare 1.7 GA (Hopper). 2016-04-06 16:34:46 +02:00
Oliver Gierke
93bad424d1 DATAREDIS-475 - After release cleanups. 2016-03-18 11:16:08 +01:00
Oliver Gierke
41b6e8a171 DATAREDIS-475 - Prepare next development iteration. 2016-03-18 11:15:51 +01:00
Oliver Gierke
6e2d2683d1 DATAREDIS-475 - Release version 1.7 RC1 (Hopper). 2016-03-18 11:15:00 +01:00
Oliver Gierke
5d5ff81cd2 DATAREDIS-475 - Prepare 1.7 RC1 (Hopper). 2016-03-18 11:06:58 +01:00
Mark Paluch
77de777da8 DATAREDIS-479 - Upgrade to jedis to 2.8.1.
Update jedis driver to 2.8.1. Use binary method for SSCAN and implement ZSCAN and HSCAN methods. Move ScanOptions to ScanParams conversion to JedisConverters.

Original Pull Request: #178
2016-03-15 14:32:37 +01:00
Mark Paluch
754639d137 DATAREDIS-478 - Upgrade to lettuce 3.4.2.Final. 2016-03-15 08:15:07 +01:00
Mark Paluch
92274a8450 DATAREDIS-425 - Add JSR-310 support, CDI extension and Update reference documentation.
We ship converters for JSR-310 types (LocalDate/Time, ZonedDateTime, Period, Duration and ZoneId) to map between UTF-8-encoded byte[] and JDK 8 date/time types.

We also export Redis Repositories in a CDI environment. Repositories can be injected using @Inject. The CDI extension requires at least RedisOperations to be provided. Other beans like RedisKeyValueAdapter and RedisKeyValueTemplate can be provided by the user. If no RedisKeyValueAdapter/RedisKeyValueTemplate beans are found, the CDI extension creates own managed instances.

Original Pull Request: #156
2016-03-14 10:39:50 +01:00
Christoph Strobl
bd7728e6ad DATAREDIS-425 - Add Support for basic CRUD and finder Operations backed by Hashes and Sets.
We now enable storing domain object as a flat Redis 'HASH' and maintain additional 'SET' structures to enable finder operations on simple properties.

  @RedisHash("persons");
  class Person {

    @id String id;
    @Indexed String firstname;
    String lastname;

    Map<String, String> attributes;

    City city;

    @Reference Person mother;
  }

The above is stored in the HASH with key 'persons:1' as

  _class = org.example.Person
  id = 1
  firstname = rand
  lastname = al’thor
  attributes.[eye-color] = grey
  attributes.[hair-color] = red
  city.name = emond's field
  city.region = two rivers
  mother = persons:2

Complex types are flattened out to their full property path for each of the values provided. If the properties actual value type does not match the declared one the '_class' type hint is added to the entry.

  city._class = CityInAndor.class
  city.name = emond's field
  city.region = two rivers
  city.country = andor

Map and Collection like structures are stored with their key/index values as part of the property path. If the map/collection value type does not match the actutal objects one the '_class' type hint is added to the entry.

  list.[0]._class = DomainType.class
  list.[0].property1 = ...

  map.[key-1]._class = DomainType.class
  map.[key-1].property1 = ...

Properties marked with '@Reference' are stored as semantic references by just storing the key to the referenced object 'HASH' instead of embedding its values.

   mother = persons:2

Please note that referenced objects are not transitively updated/saved and that lazy loading of references will be part of future development.

A 'save' operation therefore executes the following:

  # flatten domain type and add as hash
  HMSET persons:1 id 1 firstname rand …

  # add the newly inserted entry to the list of all entries of that type
  SADD persons 1

  # index the firstname for finder lookup
  SADD persons.firstname:rand 1

Simple finder operation like 'findByFirstname' use 'SINTER' to find matching

  SINTER persons.firstname:rand
  HGETALL persons:1

Besides resolving an index via the '@Index' annotation we also allow to add custom configuration via the 'indexConfiguration' attribute of '@EnableRedisRepositories'.

  @Configuration
  @EnableRedisRepositories(indexConfiguration = CustomIndexConfiguration.class)
  class Config { }

  static class CustomIndexConfiguration extends IndexConfiguration {

    @Override
    protected Iterable<RedisIndexDefinition> initialConfiguration() {
      return Arrays.asList(
        new SimpleIndexDefinition("persons", "lastname"),
      );
    }
  }

The '@TimeToLive' annotation allows to define a property or method providing an expiration time when storing the key in redis.

@RedisHash
class Person {

  @Id String id;
  @TimeToLive Long ttl;
}

Original Pull Request: #156
2016-03-14 10:37:53 +01:00