synclayer_redis

Redis adapter for SyncLayer.

Installation

dependencies:
  synclayer: ^1.4.1
  synclayer_redis: ^1.0.0

Usage

import 'package:synclayer/synclayer.dart';
import 'package:synclayer_redis/synclayer_redis.dart';
import 'package:redis/redis.dart';

final conn = RedisConnection();
final command = await conn.connect('localhost', 6379);

await SyncLayer.init(
  SyncConfig(
    customBackendAdapter: RedisAdapter(command: command),
    collections: ['todos'],
  ),
);

License

MIT License

Libraries

synclayer_redis
Redis adapter for SyncLayer