#@set author_name = yuqing #@set OS_NAME = $(uname -a | awk '{print $1;}') # to support #@function CONFIG_GET # the version of libshmcache >= 1.0.7 #@if %{OS_NAME} in [Darwin] #@add_annotation CONFIG_GET /usr/local/lib/libshmcache.so /usr/local/etc/libshmcache.conf #@else #@add_annotation CONFIG_GET /usr/lib/libshmcache.so /etc/libshmcache.conf #@endif #@function CONFIG_GET app.version = app1.key1 #@function SHELL_EXEC host = hostname #@function LOCAL_IP_GET bind_ip = inner[0] #@function EXPRESS_CALC thread_count = 5 * 4 + 6 #@if %{OS_NAME} in [Linux, Darwin] [AccessLogSpaceCharConvert] # format: src = dest # src can be a printable char or a backslash char pair such as \t # src and dest can be ASCII code as \x##, such as \x20 for the SPACE char # dest can be a printable char, ASCII code as \x##, # or quoted two chars as backslash follow by a char, such as "\t" # extended backslash char pairs: # \0 for the ASCII 0 character # \s for the SPACE character \0 = "\0" \t = "\t" \n = "\n" \v = "\v" \f = "\f" \r = "\r" \s = "\s" \\ = "\\" #@endif