Skip to content

编译支持multi-subsystems lua_shared_dict support

License

Notifications You must be signed in to change notification settings

stallion5632/apisix-nginx-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how to use

  • base openresty official 1.19.9.1 version
  • Follow the steps below:
    • cd apisix-nginx-module/patch
    • ./patch.sh ThePathOfYourOpenRestySrcDirectory
    • cd openresty-1.19.9.1 && ./configure --add-module=../apisix-nginx-module/src/meta
    • make -j10

测试nginx.conf

lua {
    lua_shared_dict dogs 1m;
}
http {

    server {
        listen 9991;
        location /t {
            content_by_lua_block {
                ngx.shared.dogs:set("foo", "abcd")
                print(ngx.shared.dogs:get("foo")) -- works
             }
        }

    }
}
stream {
    server {
        listen 9992;
        content_by_lua_block {
            print(ngx.shared.dogs:get("foo")) -- works too!
        }
    }
}

About

编译支持multi-subsystems lua_shared_dict support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.0%
  • Shell 2.0%