Reputation: 474
I ran into a sidekiq configuration YAML file :
---
:concurrency: 25
staging:
:concurrency: 10
production:
:concurrency: 25
:queues:
- ["critical", 2]
- high
- low
and there are colons before variables. What do they mean?
Upvotes: 0
Views: 121
Reputation: 2347
If you load the above file in console, you're output will look something like this
For keys with colon prefixed
:concurrency: 25
will look like :concurrency => 25
For keys without colon prefixed
staging:
will look like "staging"
Also, converting to symbol is very specific to Ruby only as the interpreter takes care of it.
Upvotes: 2