How to Create an Ajax Counter With Redis
- 1). Open your program code in Redis.
- 2). Scroll down to the area where you want to add a new counter. Start a new line.
- 3). Type “counter :XXX;” without quotes.
- 4). Replace “XXX” with the name of the class or div you want to count.
- 5). Save the code. When you run it, the AJAX counter will run as well.
Source...