作者归档:杨龙

Cannot find imap library (libc-client.a)/

问题1:configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

解决:yum install -y libc-client-devel

问题2:

解决:

ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
--with-imap --with-kerberos --with-imap-ssl

docker endpoint for “default” not found

docker endpoint for “default” not found

Error invoking remote method ‘desktop-go-backend’: Error: {“message”:”retrieving settings: loading settings: parsing JSON: EOF”}

解决办法:

For Windows Users

  1. Delete .docker directory. Which exists on PATH C:\Users\your-username\.docker
  2. Restart docker.

Thanks man, it’s works to me!

接口幂等性

幂等:f(x)=f(f(x))

方案1:select + insert/update 唯一索引

方案2:直接insert 唯一索引冲突后update

方案3:状态机,例如:status 1已处理 0 未处理

方案4:放重复表

方案4:token命令 成功后删除token

方案6:悲观锁(如select … for update) 还是判断status字段值,有性能问题

方案7:乐观锁,不会上锁

方案8:分布式锁 可以使用redis set ex nx