Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 435 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 435 Bytes

mini_like

1、use Redis as a backend.

2、use custom hash function to scale horizontally

test

    # like actions
    mini_like.like(1, 1)
    mini_like.like(1, 2)
    mini_like.like(2, 3)
    mini_like.like(2, 1)

    # unlike actions
    mini_like.unlike(1, 1)
    mini_like.unlike(2, 3)

test result