profile
viewpoint
DSha shasharoman https://amsimple.com

shasharoman/code-example 1

For refer in somewhere.

shasharoman/amp 0

encode message to buffer and decode buffer to message

shasharoman/cm 0

minimal cluster manager for node.js.

shasharoman/equeue 0

series or delay execution queue.

shasharoman/fns 0

functions.

shasharoman/fw-example 0

for framework impl example

shasharoman/log 0

logger with simplest features

shasharoman/server 0

server framework

shasharoman/sok 0

a wrapper of unix socket with some common pattern

pull request commentthinkjs/think-cache-redis

Think cache redis del keys

Hello, @kyohaifeng @lizheming 针对这个merge反馈一个疑问:

如下代码

const patt = /^[a-z0-9_.]+$/;
if (patt.test(key)) {
    return this.redis.delete(key);
} else {
    return this.redis.deleteRegKey(key);
}

我暂时未研究delete & deleteRegKey的行为区别,但请问依赖正则patt去区分这两个行为的背后依据是什么?

因为我在项目中会用:-等字符区分key的类别与scope,如 ap:sys:xxx 或者 ap:user:xxx-yyy这种,当前由于这个merge,线上版本 1.2.0 -> 1.2.3之后,原本生效的一些delete操作不再生效,从而引发其他业务问题。

await think.cache(C.CACHE_KEY.IS_MAINTAIN, null, 'redisStore'); 
// 由于key无法通过前文 patt 的验证,导致此处删除cache失败
kyohaifeng

comment created time in 2 months

release shasharoman/fns

v1.0.0

released time in 4 months

create barnchshasharoman/fns

branch : master

created branch time in 4 months

created repositoryshasharoman/fns

functions.

created time in 4 months

create barnchshasharoman/cm

branch : master

created branch time in 4 months

created repositoryshasharoman/cm

minimal cluster manager for node.js.

created time in 4 months

create barnchshasharoman/cm

branch : dev

created branch time in 4 months

create barnchshasharoman/cm

branch : master

created branch time in 4 months

created repositoryshasharoman/cm

minimal cluster manager for node.js.

created time in 4 months

create barnchshasharoman/cm

branch : master

created branch time in 4 months

created repositoryshasharoman/cm

minimal cluster manager for node.js.

created time in 4 months

create barnchshasharoman/cm

branch : master

created branch time in 4 months

created repositoryshasharoman/cm

minimal cluster manager for node.js.

created time in 4 months

create barnchshasharoman/cm

branch : master

created branch time in 4 months

created repositoryshasharoman/cm

cluster manager.

created time in 4 months

created tagshasharoman/equeue

tagv1.0.0

series or delay execution queue.

created time in 4 months

release shasharoman/equeue

v1.0.0

released time in 4 months

create barnchshasharoman/equeue

branch : master

created branch time in 4 months

created repositoryshasharoman/equeue

series or delay execution queue.

created time in 4 months

created tagshasharoman/log

tagv1.0.0

logger with simplest features

created time in 5 months

release shasharoman/log

v1.0.0

released time in 5 months

create barnchshasharoman/log

branch : dev

created branch time in 5 months

create barnchshasharoman/log

branch : master

created branch time in 5 months

created repositoryshasharoman/log

logger with simplest features

created time in 5 months

created tagshasharoman/sql

tagv1.0.0

simple tool for building sql statement.

created time in 5 months

release shasharoman/sql

v1.0.0

released time in 5 months

create barnchshasharoman/sql

branch : dev

created branch time in 5 months

create barnchshasharoman/sql

branch : master

created branch time in 5 months

created repositoryshasharoman/sql

created time in 5 months

created tagshasharoman/sok

tagv1.0.1

a wrapper of unix socket with some common pattern

created time in 5 months

release shasharoman/sok

v1.0.1

released time in 5 months

push eventshasharoman/sok

shasharoman

commit sha 2d5bb6cf422f1e1f5fb4e353a838b07c8de0c7f1

fix: amp dependency replace ssh with https

view details

push time in 5 months

push eventshasharoman/sok

shasharoman

commit sha 2d5bb6cf422f1e1f5fb4e353a838b07c8de0c7f1

fix: amp dependency replace ssh with https

view details

push time in 5 months

create barnchshasharoman/sok

branch : dev

created branch time in 5 months

created tagshasharoman/sok

tagv1.0.0

a wrapper of unix socket with some common pattern

created time in 5 months

release shasharoman/sok

v1.0.0

released time in 5 months

create barnchshasharoman/sok

branch : master

created branch time in 5 months

created repositoryshasharoman/sok

created time in 5 months

created repositoryshasharoman/sok

a wrap of unix socket with some parttern

created time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 280ce93233a3dcbc2cf39173933dcaf46dbc71dc

.

view details

shasharoman

commit sha 4127e36b43d73b23bb24733f1e60ebf9ba97abbf

.

view details

shasharoman

commit sha def3f13d36fd9a370f7e66fe84b9d124fa31ddf7

.

view details

shasharoman

commit sha 3df622df624cd8fc1f002e91a5ed3b4ac054d2f2

.

view details

push time in 5 months

create barnchshasharoman/amp

branch : dev

created branch time in 5 months

created tagshasharoman/amp

tagv1.0.0

a message protocol

created time in 5 months

release shasharoman/amp

v1.0.0

released time in 5 months

create barnchshasharoman/amp

branch : master

created branch time in 5 months

created repositoryshasharoman/amp

a message protocol

created time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 86d81940add1b2f9e0eeadfdb113872938f7eb24

.

view details

shasharoman

commit sha 0da976d67c123d7c6ca690f4d3b9a6889de320f6

.

view details

shasharoman

commit sha 7ec56034317c1b72b3709f2e5a0df16e1eec9ffd

.

view details

shasharoman

commit sha 350b12856edb3dac5cf46989191080d06a93c8c7

.

view details

shasharoman

commit sha 374760cf869d9d0920f5633d01b307973b14f3c2

.

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha c71cae686115445af90a621e092ba486e3353ae5

.

view details

push time in 5 months

startedthinkjs/thinkjs

started time in 5 months

issue closedthinkjs/thinkjs

【BUG反馈】think-model version:1.3.3

postgresql,think-model由1.3.2升级到1.3.3,导致应用运行出现SQL语法错误。

1.3.3报错如下:

SQL: SELECT COUNT(`d`.field_x) AS think_count FROM table_x AS d INNER JOIN table_y AS "c" ON d.field_y = "c".field_y WHERE ( field_z = E'001' ) LIMIT 1, Time: 32ms

  error: syntax error at or near "."
      at Connection.parseE (/root/ws/apollo/node_modules/pg/lib/connection.js:604:11)
      at Connection.parseMessage (/root/ws/apollo/node_modules/pg/lib/connection.js:401:19)
      at Socket.<anonymous> (/root/ws/apollo/node_modules/pg/lib/connection.js:121:22)
      at Socket.emit (events.js:198:13)
      at addChunk (_stream_readable.js:288:12)
      at readableAddChunk (_stream_readable.js:269:11)
      at Socket.Readable.push (_stream_readable.js:224:10)
      at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

1.3.2 will be ok:

SQL: SELECT COUNT(d.field_x) AS think_count FROM table_x AS d INNER JOIN table_y AS "c" ON d.field_y = "c".field_y WHERE ( field_z = E'001' ) LIMIT 1, Time: 32ms

初步判断,是因为1.3.3在这个COMMIT中为count方法的table包了一层"``",由此引发了悲剧。

closed time in 5 months

shasharoman

push eventshasharoman/IAE

shasharoman

commit sha 68d7239831f7e2add84d9c848a5f498347976fc7

.

view details

push time in 5 months

issue openedthinkjs/thinkjs

【BUG反馈】think-model version:1.3.3

postgresql,think-model由1.3.2升级到1.3.3,导致应用运行出现SQL语法错误。

1.3.3报错如下:

SQL: SELECT COUNT(`d`.field_x) AS think_count FROM table_x AS d INNER JOIN table_y AS "c" ON d.field_y = "c".field_y WHERE ( field_z = E'001' ) LIMIT 1, Time: 32ms

  error: syntax error at or near "."
      at Connection.parseE (/root/ws/apollo/node_modules/pg/lib/connection.js:604:11)
      at Connection.parseMessage (/root/ws/apollo/node_modules/pg/lib/connection.js:401:19)
      at Socket.<anonymous> (/root/ws/apollo/node_modules/pg/lib/connection.js:121:22)
      at Socket.emit (events.js:198:13)
      at addChunk (_stream_readable.js:288:12)
      at readableAddChunk (_stream_readable.js:269:11)
      at Socket.Readable.push (_stream_readable.js:224:10)
      at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

1.3.2 will be ok:

SQL: SELECT COUNT(d.field_x) AS think_count FROM table_x AS d INNER JOIN table_y AS "c" ON d.field_y = "c".field_y WHERE ( field_z = E'001' ) LIMIT 1, Time: 32ms

初步判断,是因为1.3.3在这个COMMIT中为count方法的table包了一层"``",由此引发了悲剧。

created time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 9dc0b82aa40663b19d7ab9c69c0d112a890b0fe4

nice

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 466461c2e4f213c635e6dff1dcf73c866133e376

fix

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 8495eed6d65e48d40201fbc533ddeb2b550c88b2

.

view details

shasharoman

commit sha 5139bc04811ceeb524c5eaf16bcd0acaa0c71186

improve

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 77b1d684a20e960c3ec59690704c2cd697fec108

update test case describe

view details

shasharoman

commit sha c6e54ce9319ac7224e117226efff896ddc3da3a2

.

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 0d93dd9f7816448ea2869e96a96f9784e42e834d

lib/redis & lib/oss

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 21b8add0e3d49bb42c8ed34352a33457210908f4

mysql lib

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 38eae37c5555206c2e3a174a899e09ed72a14190

fix

view details

shasharoman

commit sha e8e42579968fc3c9f247069c9feeb89068f3d0a4

sql modules for build sql

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 49acaa3301436ac5a9710a920e5de2adcfd6f242

impl

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha e2ef36f7d23fc8af3e43145746b46c418c5c03d8

untrack log file

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 1e72c751f87b0b5135bf5da23cbf9d453c7cf4c1

fw.impl

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha d3b3d4b570c7b792c8b8debcebdb704702cedcea

.

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 5f3c0b05755883acacfe41ef582432f586532ab5

.

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 2b43f7cffaf26c14c6676755521b1323ebfb50f8

fix: spell issue

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 00aa331bdeecc6ca259fd5ec16661ee89388e903

fix

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 75875dd3cf4da5d10ddfaa21f9aaf1523d41be71

fix

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 3c225fac91b632559093010a7d5df8a92b910059

fix

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha e34d2a49e1d8d971d50649b73cf55856e775a70c

Server...

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha f39199f154ab60ebd56c5fde0c4be7692ea2301c

tuning

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha 38f5b89f678933762f1efe0fe01073e8a3ddad68

feat params router

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha e8517391b0d4db6a8eb431b5b3a3921d8063a838

fix: mount issue

view details

shasharoman

commit sha 21ecbfcf7278897ec1c236ad181cd73dd3675c77

params router impl

view details

push time in 5 months

push eventshasharoman/IAE

shasharoman

commit sha be9f28194a6743513c3b3e28085c5b735dd402c6

feat: StageTree & Router

view details

push time in 6 months

push eventshasharoman/IAE

shasharoman

commit sha 3dc3096e454f16a9ea067f4fc2dee9fd28218a48

feat: impl ptree/Node.js

view details

push time in 6 months

more