Skip to content

jstacoder/angular-redis-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Still WIP, to use you must download and install webdis, get it at webd.is

###making progress

to use, just add dependency to redis.app

var myApp = angular.module('mycool.app',['redis.app']);

to use different host or port for webdis, use redisUrlProvider in config

myApp.config(['redisUrlProvider',function(redisUrlProvider){
    redisUrlProvider.setHost('myhost.com');
    redisUrlProvider.setPort(4444);
}]);

Now run redis commands

myApp.controller('RedisCtrl',['redisService',function(redisService){
    var self = this;
    redisService.hmset('hash:key',['key1','val1','key2','val2']).then(function(res){
        
    });
    redisService.hgetall('hash:key').then(function(res){
        self.data = res.data.HGETALL;
    });
}]);

About

query your redis server from angular, well that's the goal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published