synclayer_redis 1.0.0 copy "synclayer_redis: ^1.0.0" to clipboard
synclayer_redis: ^1.0.0 copied to clipboard

discontinuedreplaced by: synclayer

Redis adapter for SyncLayer - enables offline-first sync with Redis database.

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

0
likes
130
points
47
downloads

Publisher

verified publisherhostspica.com

Weekly Downloads

Redis adapter for SyncLayer - enables offline-first sync with Redis database.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, redis, synclayer

More

Packages that depend on synclayer_redis