skip to Main Content

Redis – Filter zcard by last 30 days

I am trying to know how many new followers a company have in last 30 days. Below what I have right now: To add each new follower: ts = time.time() redis_store.zadd('followers_companies:'+str(company_id_to_fav), str(current_user.id), ts) To retrieve all followers: followers = redis_store.zcard('followers_companies:'+str(company.id))…

VIEW QUESTION

Redis make failing. Ubuntu 18.04

I am trying to make Redis 6.0.6., but when running the make command I get this error: (.venv) vagrant@vagrant:/vagrant/redis-6.0.6$ make cd src && make all make[1]: Entering directory '/vagrant/redis-6.0.6/src' /bin/sh: 1: pkg-config: not found CC Makefile.dep /bin/sh: 1: pkg-config: not…

VIEW QUESTION
Back To Top
Search