diff options
| author | fukachan <fukachan> | 2005-08-17 10:51:01 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-08-17 10:51:01 +0000 |
| commit | a8f6f8a1503e697feab5c96293930773eac94bdf (patch) | |
| tree | 67a6555d3e7ab413474ba3da3893adb7b053a204 /fml/lib | |
| parent | 435edca2693ba1905b03404935300720ee2fb28f (diff) | |
| download | fml8-a8f6f8a1503e697feab5c96293930773eac94bdf.tar.gz fml8-a8f6f8a1503e697feab5c96293930773eac94bdf.tar.bz2 fml8-a8f6f8a1503e697feab5c96293930773eac94bdf.zip | |
import_data_from() -> add().
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/Cache/Ring.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fml/lib/FML/Cache/Ring.pm b/fml/lib/FML/Cache/Ring.pm index 1198928b..3ea6e485 100644 --- a/fml/lib/FML/Cache/Ring.pm +++ b/fml/lib/FML/Cache/Ring.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Ring.pm,v 1.4 2004/07/23 15:59:02 fukachan Exp $ +# $FML: Ring.pm,v 1.5 2005/05/27 03:03:33 fukachan Exp $ # package FML::Cache::Ring; @@ -252,9 +252,9 @@ sub close } -=head2 import_data_from($args) +=head2 add($args) -import data from file. +import data into cache from file. Actually, link(2) $src to cache file. KEY VALUE @@ -269,10 +269,10 @@ Actually, link(2) $src to cache file. # Arguments: OBJ($self) HASH_REF($args) # Side Effects: create $dst file (linked). # Return Value: NUM(1(success) or 0(fail)) -sub import_data_from +sub add { my ($self, $args) = @_; - my $link = $args->{ try_link } || 1; + my $link = $args->{ try_link } || "yes"; my $src = $args->{ file } || ''; my $dst = $self->cache_file_path() || ''; |
