Various latent rules in the definition of [Elixir007] on_definition gauge function

1. demand Writing a memcache-based cache module requires a specific prefix before the key, so the original store function of user cache should be written as # user.exdef store(user_id, value) do key = Cache.key_encode(user_id, :user) ... end Since the prefixed operation (key_encode/1) is all that must be done before caching, we ca ...

Posted by seanpaulcail on Wed, 20 Mar 2019 20:00:28 -0700

RabbitMQ start error throw:{error,{missing_dependencies,[crypto,ssl]

Error when starting rabbitmq-server: 2018-01-03 06:16:32.494 [info] <0.33.0> Application lager started on node rabbit@ubuntu 2018-01-03 06:16:32.507 [info] <0.5.0> Log file opened with Lager 2018-01-03 06:16:33.438 [error] <0.5.0> Error description: init:do_boot/3 init:start_em/1 rabbit:s ...

Posted by bladecatcher on Fri, 08 Feb 2019 13:30:17 -0800

elixir spwan and spawn_link(:trap_exit)

Process is a very basic unit of task execution for elixir. Previously, we did not understand spawn and spawn_link deeply. We only know that the latter is the link between the child process and the parent process, and the accidental collapse of the child process can also lead to the collapse of the parent process. Today I just saw a film about ...

Posted by itsmani1 on Tue, 11 Dec 2018 16:24:05 -0800