Git Product home page Git Product logo

ledis-go's Introduction

Introduction

  • Ledis: a simple, stripped down version of a Redis server, with these functionalities:

    • Data structures: String, List, Set
    • Special features: Expire, snapshots
    • A simple web frontend CLI (similar to redis-cli), located at: cli/ledis-cli.html
  • To Run:

$ go get -u github.com/golang/dep/cmd/dep
$ dep ensure
$ gin -a 8080 run main.go
  • Test Coverage:
$ ./test.sh
?       github.com/zealotnt/ledis-go    [no test files]
ok      github.com/zealotnt/ledis-go/handlers   4.059s  coverage: 98.5% of statements
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:44:  InitStore   100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:52:  ExpiredCleaner  100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:68:  ServeHTTP   100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:211: writeBody   100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:215: respError   100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:219: parseCommand    83.3%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:231: setHTTPStatus   100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:236: Get     100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:251: Set     100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:265: Llen        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:276: Rpush       100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:302: Lpop        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:325: Rpop        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:350: Lrange      100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:382: Sadd        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:422: Scard       100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:441: Smembers    100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:464: Srem        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:491: Sinter      100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:528: Keys        100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:543: Del     100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:555: Flushdb     100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:564: Expire      100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:576: Ttl     100.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:590: Save        80.0%
github.com/zealotnt/ledis-go/handlers/ledis_handler.go:608: Restore     88.9%
total:                              (statements)    98.5%

ledis-go's People

Contributors

zealotnt avatar

Watchers

 avatar  avatar

Forkers

huyphung1602

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.