Save data in lock file, if not exist create and then save
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | name of lock file | yes |
| data | string | data for being save in lock file | yes |
Output : bool | int
Static or normal : Static
lock::save('lock_name', 'data_to_be_saved');