openresty / openresty/lua-resty-lock

Is this lock only for caching to shared memory?

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
323
Forks
81
Avg merge
7h 41m
Merged PRs (30d)
2

Description

For example, I use a worker-based cache. I get the data from redis and save it to the worker-level cache. I don't need a lock.For example, I get data from mysql and save it to the cache of the worker process. I don't need a lock.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the lua-resty-lock API and the repository description of ngx_lua shared memory dictionaries first. Determine whether the lock applies only to shared-memory caching or also to worker-local caches backed by Redis or MySQL, then document the supported use cases and clarify when no lock is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, mysql, redis
Domain
backend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.